Question: Please provide pseudocode for the below: Your objective is to plan the program flow and logic for an electric coffee maker with the following features:

Please provide pseudocode for the below:

Your objective is to plan the program flow and logic for an electric coffee maker with the following features:

  1. A clock displaying the current time. To set the time, simply press the ON button twice, then read the hour and minute from the user. When ON is pressed one more time, the time is set.
  1. A pre-set time (hh-mm) to start brewing the coffee
  1. Three buttons labelled OFF, ON, and PROGRAM:
    1. When the OFF button is pressed, the machine does nothing other than display the current time.
    2. When the ON button is pressed, the machine starts brewing coffee.
    3. When the PROGRAM button is pressed, the machine waits for the pre-set time to begin brewing.
  1. An automatic sensor that detects whether all the water has been used. Once the water runs out, brewing stops.
  1. A heating sensor that keeps the coffee at a fixed temperature as long as the button is set to ON or PROGRAM

The machines operation can be described as follows. First, the user adds coffee and water to the machine. If the user presses the ON button, the system begins boiling the water and then mixing it with coffee. The mix goes through the filter into the glass container. If the OFF button is pressed, the machine shuts down and the current time is displayed. If the PROGRAM button is pressed, the machine goes into sleep mode until the preset time is reached. Once its reached, the machine wakes up and makes coffee.

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!