Question: A microwave control panel has four buttons: one for increasing the time by 30 seconds, one for switching between power levels 1 and 2, a
A microwave control panel has four buttons: one for increasing the time by 30 seconds, one for switching between power levels 1 and 2, a reset button, and a start button. Implement a class that simulates the microwave, with a method for each button. The method for the start button should print a message “Cooking for ... seconds at level ...”.
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Answer Microwavejava public class Microwave Add a field representing the time int time Add a field representing the power level int level Creates a mi... View full answer
Get step-by-step solutions from verified subject matter experts
