1) Write a microwave controller program in C language, that will take as input t
ID: 2249148 • Letter: 1
Question
1) Write a microwave controller program in C language, 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 ½ and display the new power level. When the timer reaches zero, your program should ring the bell (‘’ character) and display a message such as “Your food is ready!” [Hint: use a for loop with an if-statement.]
Explanation / Answer
Program
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.