C++ Trignometry Sine Cosine Tangent

Feb 3rd, 2012
Studypool Tutor
Price: $5 USD

Tutor description

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

Word Count: 42
Showing Page: 1/1
#include #include #include 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 <<

Review from student

Studypool Student
" Excellent job "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1823 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors