Write A Program That Asks The User For An Angle, Entered In Radians. The Program Should Then Display The Sine, Cosine, And Tangent Of The Angle. (Use The Sin, Cos, And Tan Library Functions To Determine These Values .) All Numeric Values In The Output

Write a program  that asks the user for an angle, entered in radians. The program  should then display the sine, cosine, and tangent of the angle. (Use the sin, cos, and tan library functions to determine these values .) All numeric values  in the output  should be displayed in fixed-point notation, rounded to four decimal places of precision.

Here is one sample run:

Enter angle: 1.07078
sin(1.07078)=0.8776
cos(1.07078)=0.4794
tan(1.07078)=1.8304

 

I got this so far

 

 

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;
int main ()

{
double radians;

cout << “Enter angle:”;
cin >> radians;

cout << ” sin(3.1415)=” <<
fixed << setprecision(4) << sin(radians) << endl;
cout << “cos(3.1415)=”
<< fixed << setprecision(4) << cos(radians) << endl;
cout << “tan(3.1415)=” <<
fixed << setprecision(4) << tan(radians) << endl;

cin.ignore();
cin.get();
return 0;
}

 

 
Do you need a similar assignment done for you from scratch? Order now!
Use Discount Code "Newclient" for a 15% Discount!