Question: 5. (20 pts) Write a program that first asks for the name of the user, then asks the user to enter an angle between 0

 5. (20 pts) Write a program that first asks for the

5. (20 pts) Write a program that first asks for the name of the user, then asks the user to enter an angle between 0 and 180 degrees. If the user does not enter a correct number the program must start over. Once the correct number is entercd, then the program must ask the user if it should calculate the sine the cosine, or the tangent of the angle. If the user does not enter a valid choice, then the program should ask the same question again. Once the made, the program must do the calculation and present the answer to the user. You must use a switch statement in this program. You may use built-in functions in the emath library for the trigonometric functions. Print out this program on a separate page and submit it attached to this homework assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!