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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started