Question: Program In C language: Write a microwave controller program that will take as input the time to cook something and the power level (1 to

Program In C language: Program In C language: Write a microwave controller program that will take

Write a microwave controller program that will take as input the time to cook something and the power level (1 to 100). Assume that you have the ability to add a time delay so that every iteration of the loop takes 1 second (your program does not need to add the delay - just assume that this could be added to your program). Your program should decrement the timer every iteration of the loop and display the remaining time. When the timer reaches half of the cooking time it should cut the power to 34 and display the new power level. When the timer reaches zero, your program should ring the bell ('\a' character) and display a message such as "Your food is ready!" If the user enters a cooking time value less than 0, ring the bell and ask them to enter a correct value. Don't proceed until a correct value has been entered. If the user enters a power level out of range, ring the bell and ask them to enter a correct value. Don't proceed until a correct value has been entered. Sample output (doesn't have to be identical). Make sure to fully test your code and submit any necessary screen shots

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!