Question: In C (15 points) Write a function that asks the user to enter a new power level for a high-tech piece of machinery. The function,
In C

(15 points) 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, we run the risk of a meltdown. Because of this behavior, our function should keep asking the user to input a new power level until they give a value in the specified range. You must fill in a function declaration, function call, and function definition using the sample driver program given below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
