Question: Create a menu driven C++ program with three functions of yours (sind, cosd, tand), calculating sin, cos, and tan trigonometric functions with the input values
Create a menu driven C++ program with three functions of yours (sind, cosd, tand),
calculating sin, cos, and tan trigonometric functions with the input values being in
degrees. You are required to create those three functions and invoke them from the
main program in order to receive any credit.
Purpose of the program : Writing functions.
Calculate trigonometric functions with input value in degrees.
Section 1 : Show a menu and receive a selection from a user.
Section 2 : Enter a number in degrees.
Section 3 : Invoke appropriate function you wrote, show the answer.
Section 4 : Repeat Section 1 through Section 3 until user specifies

Trigonometric Functions in Degrees. Please select a function to be performed S/s: sin C/C: COS T/t tan E/e: Exit Please enter your selection: s You selected sin. Please enter a value in degrees 150 sin (150 degrees) 0.5 Please select a function to be performed: S/s sin C/c cos T/t: tan E/e: Exit Please enter your selection: C you selected cos Please enter a value in degrees 240 os(240 degrees 0.5 Please select a function to be performed: S/s sin C/C COS /t tan E/e: Exit Please enter your selection: T you selected tan Please enter a value in degrees 225 5 degrees 1 Please select a function to be performed: S/s sin C/c: cos T/t: tan E/e Exit Please enter your selection: X you entered invalid selection. Please select a function to be performed: S/s sin C/c COS T/t: tan E/e Exit Please enter your selection: e Program terminates. Good Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
