Question: in c language 1. (50 pts) Write a C program that converts degrees to radians. You will need to prompt the user to put in
1. (50 pts) Write a C program that converts degrees to radians. You will need to prompt the user to put in a degree value, which your program converts to radians and prints out the result. Specific requirements: (1) Your main function accepts input in degree and display conversion result in radians. (2) Your program is supposed to accept an input value only if it lies between - 180 and 180, inclusively. If the value entered is outside of those boundaries, your program will ask the user again to put in a valid value. If the user just started the program, the command line prompt for input is supposed to be: "Enter degree: ". If an incorrect value was entered, then the subsequent prompt should be: "Enter degree between - 180 and 180:", and keeps repeating this message cach time an incorrect value is entered until a value in the right range is entered. (3) Write a separate function to convert degrees to radians. Call this function in your main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
