Objective
- Program with library
functions
Preparation
- Review section 3.9 (pages 127 - 130) from Starting Out with C++ by Gattis.
- Print and complete Worksheet 7.
Programming
- Write a program that gets an angle in degrees as a floating-point value of type double from the user and displays the cosine, sine, and tangent of that angle. It should then generate a random number between -10 and 10, assign it to a floating-point variable of type double and display the exponential, natural logarithm, base-10 logarithm, square root, and absolute value of that random number.
- Verify the program works correctly.
- Print the Grade Sheet. Show your programs to the instructor.
|