homework help

Jan 26, 2017 at 8:58pm


.
Last edited on Jan 31, 2017 at 9:58pm
Jan 26, 2017 at 9:09pm
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?
Jan 26, 2017 at 9:25pm
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.
Jan 26, 2017 at 9:48pm
You need to to asin() to get the angle in radians, then multiply the result by 180.0 / PI to convert back to degrees.

Jan 26, 2017 at 10:11pm
thank you I got it to work now.
Topic archived. No new replies allowed.