Question: Modify problem 1 so that it runs within a loop that prompts the user whether to continue at the end of each iteration and does

Modify problem 1 so that it runs within a loop that prompts the user whether to continue at the end of each iteration and does another if the user enters y or Y. (Sample run below) >> HW07_06 Enter angle 1 in degrees: 45 Enter angle 2 in degrees: -45 cos(45.000000) = cos(-45.000000) = 0.707107. Enter Y to do another: y Enter angle 1 in degrees: 30 Enter angle 2 in degrees: 60 cos(30.000000) = 0.866025 which is greater than cos(60.000000) = 0.500000. Enter Y to do another: y Enter angle 1 in degrees: 90 Enter angle 2 in degrees: 0 cos(90.000000) = 0.000000 which is less than cos(0.000000) = 1.000000.

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!