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 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
Get step-by-step solutions from verified subject matter experts
