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.
heyy post this is in the computer science group as well. they ll help you better
It'll take some time to make sure program runs. Your question will go too down for me to search again :-D Anyways Its easy.
Please don't post unrelated questions to this group. It would be better for you to post this in a more appropriate group and then post a link to it in the chat windows if you find no one available to help out in that group. As apoorvk suggested - you should post this in the computer science group instead. This helps keep the groups on topic. Please refer to our Code of Conduct if you require further clarification: http://openstudy.com/code-of-conduct
Logic:- Inputs available: initDegree, finalDegree, stepDegree curDegree=initDegree; while(finalDegree>initDegree){ print-> sin(curDegree), cos(curDegree) curDegree+=stepDegree; }
Join our real-time social learning platform and learn together with your friends!