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 .... Include instance variables for time and power level. The skeleton for the Microwave class is provided. Complete the methods.

its gotta have these methods, thanks

public class Microwave {

public Microwave() { //your code here } public void increaseTime() { //your code here } public void switchPower() { //your code here } public void reset() { //your code here } public void start() { //your code here }

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!