Question: write a function that asks the user to enter a new power level for a high tech piece of machinery. The function set_power should return

write a function that asks the user to enter a new power level for a high tech piece of machinery. The function set_power should return a copy of the value entered from the keyboard and should allow a value of type double with any value that is between 60.0 and 500.0 inclusive. If the power level drops below 60.0 then the machine will stop functioning properly and if the power level goes above 500.0, the machine will meltdown. The function should keep asking the user to input a new power level until they give a value in the specified range. Provide a function declaration, function call and function definition in C.

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!