1) Read n and print the following numbers on the screen: (USE WHILE LOOP) 2 2 3 3 3 4 4 4 4 ... n n n n n ... n (n numbers) 2) Write a program that reads an angle value in degrees and calculates the sinus of x using Taylor Series. You need to convert the degree to radian first using rad=degree *pi/180. Take the upper limit for n to be 30. (USE FOR LOOP) , pi= 3.14159 sin x = x - (x^3 / 3!) + (x^5 / 5!) - (x^7 / 7!) + ... = sum_{n=0}^{infinity} ((-1)^n x^{2n+1}) / ((2n + 1)!)
Added by Merve S.
Close
Step 1
Step 1: Define the main function and initialize variables. Show more…
Show all steps
Your feedback will help us improve your experience
Ravindra Yadav and 95 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
COULD YOU SOLVE IN C PROGRAMME?URGENCY
Debra M.
COULD YOU SOLVE ?N C PROGRAMME?URGENT
COULD YOU SOLVE AGAIN ?N PROGRAMME C,BECAUSE I HAVE TO WRITE IN C CODE.?URGENT
Ravindra Y.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD