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:
1. One for increasing the time by 30 seconds.
2. One for switching between power levels 1 and 2.
3. A start button.
4. 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 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!