CS 1405 - Lab 7

Objective

  1. Program with library functions

Preparation

  1. Review section 3.9 (pages 127 - 130) from Starting Out with C++ by Gattis.
  2. Print and complete Worksheet 7.

Programming

  1. 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.
  2. Verify the program works correctly.
  3. Print the Grade Sheet.  Show your programs to the instructor.

150 East College Avenue * Ephraim, Utah 84627 * Email: ude.wons@nosneros.htrag
© 2014 Snow College * All Rights Reserved
©