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
Get step-by-step solutions from verified subject matter experts
