You will do this by using the Law of Cosines to find the largest angle, then using the Law of Sines to find the middle ang and then subtract to find the smallest angle. (There are other ways to...


You will do this by using the Law of Cosines to find the largest angle, then using the Law of Sines to find the middle ang<br>and then subtract to find the smallest angle. (There are other ways to proceed - you might say they are better ways!<br>However, I am insisting that you do it in this manner.)<br>I strongly suggest you look up the Law of Sines and the Law of Cosines in case you've forgotten them. Also, don't forget<br>about convert ing from radians to degrees. In addition, you should Google the trigonometric and inverse trigonometric<br>functions that you will need for your calculations.<br>When you run your program, a sample run might look like this (where the user inputs 5, 4 and 3):<br>Enter largest side length: 5<br>Enter middle side length: 4<br>Enter smallest side length: 3<br>The angles are:<br>90.0<br>53.13010235415598<br>36.86989764584401<br>or this (where the user inputs 4.1, 2.6 and 2.4):<br>Enter largest side length: 4.1<br>Enter middle side length: 2.6<br>Enter smallest side leng th: 2.4<br>The angles are:<br>110. 105509787916<br>36.548442826074876<br>331346047386009 13<br>Hints: the largest angle is opposite the largest side, the middle angle is opposite the middle side, and the smallest angle is<br>opposite the smallest side. Also, be very careful about order of operations!<br>Specifications: your program must<br>• ask the user to enter three side lengths in descending order (two consecutive equal sides is valid also), each of which can<br>be any positive number<br>order, or negative numbers, then your program does not need to work. You may also assume that the user enters<br>numbers that are the sidelengths of a real triangle! That is, you don't have to worry about the user entering 100, 2 and<br>1, because no real triangle has those three sidelengths (remember the triangle inequality?).<br>even one with decimals. You may assume that the user obeys if the user enters sides out of<br>• correctly calculate the three angles in the triangle, in degrees, under the assumptions ment ioned above.<br>• use the strategy I outlined above: Law of Cosines to find the largest angle, Law of Sines to find the middle angle, and<br>subtracting to find the smallest angle.<br>• print out the three angles in degrees, each on a separate line. You don't have to worry about how many decimal<br>places they are out put with.<br>that is, if they enter side lengths that are either not all positive, aren't entered in<br>Challenge: if the user is disobedient<br>descending order, or don't satisfy the triangle inequality - make the program print out a niessage saying so instead of trying<br>to perform the computations (which could result in an error). You might need to read ahead to do this.<br>3<br>MacBook Air<br>1)<br>F7<br>F9<br>F10<br>F11<br>F12<br>

Extracted text: You will do this by using the Law of Cosines to find the largest angle, then using the Law of Sines to find the middle ang and then subtract to find the smallest angle. (There are other ways to proceed - you might say they are better ways! However, I am insisting that you do it in this manner.) I strongly suggest you look up the Law of Sines and the Law of Cosines in case you've forgotten them. Also, don't forget about convert ing from radians to degrees. In addition, you should Google the trigonometric and inverse trigonometric functions that you will need for your calculations. When you run your program, a sample run might look like this (where the user inputs 5, 4 and 3): Enter largest side length: 5 Enter middle side length: 4 Enter smallest side length: 3 The angles are: 90.0 53.13010235415598 36.86989764584401 or this (where the user inputs 4.1, 2.6 and 2.4): Enter largest side length: 4.1 Enter middle side length: 2.6 Enter smallest side leng th: 2.4 The angles are: 110. 105509787916 36.548442826074876 331346047386009 13 Hints: the largest angle is opposite the largest side, the middle angle is opposite the middle side, and the smallest angle is opposite the smallest side. Also, be very careful about order of operations! Specifications: your program must • ask the user to enter three side lengths in descending order (two consecutive equal sides is valid also), each of which can be any positive number order, or negative numbers, then your program does not need to work. You may also assume that the user enters numbers that are the sidelengths of a real triangle! That is, you don't have to worry about the user entering 100, 2 and 1, because no real triangle has those three sidelengths (remember the triangle inequality?). even one with decimals. You may assume that the user obeys if the user enters sides out of • correctly calculate the three angles in the triangle, in degrees, under the assumptions ment ioned above. • use the strategy I outlined above: Law of Cosines to find the largest angle, Law of Sines to find the middle angle, and subtracting to find the smallest angle. • print out the three angles in degrees, each on a separate line. You don't have to worry about how many decimal places they are out put with. that is, if they enter side lengths that are either not all positive, aren't entered in Challenge: if the user is disobedient descending order, or don't satisfy the triangle inequality - make the program print out a niessage saying so instead of trying to perform the computations (which could result in an error). You might need to read ahead to do this. 3 MacBook Air 1) F7 F9 F10 F11 F12
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here