Question: Design and implement a class that simulates a microwave control panel with the following four buttons: 1 . One for increasing the time by 3
Design and implement a class that simulates a microwave control panel with the following four buttons:
One for increasing the time by seconds.
One for switching between power levels and
A start button.
A reset button.
In your Microwave class, each button is implemented as a method. The method for the start button should print a message Cooking for seconds at level
Please also implement a main function that tests out all four buttons in meaningful combination and display clear messages to the user on what operation is carried out by the microwave.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
