Question: A microware control panel has four buttons: i) increases the time by 30 seconds, ii) switches between power levels 1 and 2 iii) a reset

A microware control panel has four buttons:

i) increases the time by 30 seconds,

ii) switches between power levels 1 and 2

iii) a reset button

iv) a start button.

Your job is to model the microware control panel in Java and implement a class for simulating the microwave, with appropriate public interface for each button. When client invoke start button, it should print a message Cooking for ... seconds at level ...; replace ... with current state values.

Write a client program/code to thoroughly test the class. Take snapshots of your tests and include those with submission.

code should be written in java

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!