• anonymous
can anyone help me with a computer science (c++) problem ........... Write a loop that displays a table of angle measures along with their sine and cosine values. Assume that the initial and final angle measures (in degrees) are available in initDegree and finalDegree (type int variables), and that the change in angle measure between table entries is given by stepDegree (also type int variable). Remember that the cmath library’s sin and cos functions take arguments that are in radians. Write this loop using a while statement.
Computer Science
  • Stacey Warren - Expert
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
  • schrodinger
I got my questions answered at in under 10 minutes. Go to now for free help!
  • anonymous
Logic:- Inputs available: initDegree, finalDegree, stepDegree curDegree=initDegree; while(finalDegree>initDegree){ print-> sin(curDegree), cos(curDegree) curDegree+=stepDegree; }
  • shadowfiend
Don't forget to convert the degrees to radians by multiplying by pi/180.

Looking for something else?

Not the answer you are looking for? Search for more explanations.