Collaborative Problem:
Write a program that computes an approximation for the cosine function by computing a Taylor series about 0 that does the following:
- prompts the user to enter an angle between -90 and+90 degrees;
- checks that what the user entered is in the right range, and if not, tells the user that what they entered was invalid and then prompts them again to enter an angle again;
- computes the series up to the first nonzero term that has a magnitude that is less than 10E-6 times the magnitude of the sum of all the preceding terms;
- compares the computed value to the value returned by the COS() function (which presumably is pretty accurate).
- hopefully it's clear to everyone that the angle must be converted to radians;
- use the proper logical operator in the IF statement when checking that the user entered a proper value; and,
- the ABS() function will probably be useful.
Write a computer program that prompts the user to enter:
- the percentage grade the user has in the class;
- the average percentage grade for the class; and,
- the standard deviation for the class;
The program should be "user friendly" in that it properly prompts the user to enter the data (e.g., do you enter ".85" for 85%, or do you enter "85") and checks that what the user is entering makes sense. If it does not make sense, then the user should be instructed what is the right form for the data and prompted to enter the data again.