Question: C) Write a program to calculate the remaining one side and two angles for a triangle given two sides and one opposite angle using the

 C) Write a program to calculate the remaining one side and
two angles for a triangle given two sides and one opposite angle

C) Write a program to calculate the remaining one side and two angles for a triangle given two sides and one opposite angle using the law of sines, as illustrated below. Units are not required for the sides, Use the TCC template Inputs: sides a, b, and angle A (in degrees) Outputs: angles B and C and side c (add the word degrees after each angle) Turn in a printout of the program and printouts for all required test cases. Testing Run the program for the three cases shown below (answers shown for Case 1 in example below): Case b 10 30 10.5 100 A a 20 1 2 3 7.5 40 60 100 a a b B A Law of Sines sin (A) sin(B) sin C) b Example If a = 20, b=10, and A=30 then sin (30)_sin (B) 20 10 so B = sin sin (30) 10 = 14.48 20 C=180-A-B=180-30-14.48 = 135.52 Sin (30) sin (135.529 20 20 sin (135 32) = 28.03 Sin (30 SDC Template for C# programs (save as template.cpp) - use for all programs 77 1/ // 77 // // Date: // Name: // Project: 1/ Inputs: // Outputs: V Program Description: // 7 #include //header containing out and cin using namespace std; 7/introduces namespace atd needed to use cout and cin int main() 1 return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!