Question: 3. For loops (30 pts): A) (10 pts) Write a C++ program to display a table of values for side B, side H, angle a
3. For loops (30 pts): A) (10 pts) Write a C++ program to display a table of values for side B, side H, angle a (in degrees) and a (in degrees) for the right triangle shown. Use a for loop to calculate H, a and b as side B from 2 m to 20 m in 2 m increments. The output should be a table of values for B, H , a and b similar to the one shown below (no lines are required). Use 0 digits after the decimal point for B, 3 digits after the decimal point for H, and 2 digits after the decimal point for a, and b. Turn in a printout of the program and a printout of the results. The table should be nicely aligned. Hodegree 2 4 30 32 14 BE 20 Him) degrees) Idegrees) 2 10 12 16 18 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
