homework help



.
Last edited on
First, line 8 has a preprocessor macro. Macros are tricky. C++ does support const variables. Prefer them.

The main issue:
What logical operation does the Angle_A * PI/180 perform?
What is the unit of Angle_A?
What is the unit of parameter taken by sin()?
What is the unit of value returned by sin()?
What is the unit of the value that you do expect?
right now I'm looking for it to give me 30 but it gives me .503407. in the calculator if I do the sin^-1 or arc sin it gives me 30 but I don't know how to do that.
You need to to asin() to get the angle in radians, then multiply the result by 180.0 / PI to convert back to degrees.

thank you I got it to work now.
Topic archived. No new replies allowed.