Question: C++ Prompt Your objective is to plan the program flow and logic for an electric coffee maker with the following features: 1. A clock displaying
C++

Prompt 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. 2. A pre-set time (hh-mm) to start brewing the coffee 3. Three buttons labelled OFF, ON, and PROGRAM: a. When the OFF button is pressed, the machine does nothing other than display the current time. b. When the ON button is pressed, the machine starts brewing coffee. c. When the PROGRAM button is pressed, the machine waits for the pre-set time to begin brewing. 4. An automatic sensor that detects whether all the water has been used. Once the water runs out, brewing stops. 5. A heating sensor that keeps the coffee at a fixed temperature as long as the button is set to ON or PROGRAM The machine's 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 it's reached, the machine "wakes up" and makes coffee. 1. Consider the high-level architecture of your program and break it into categories like logic, user interaction, etc. Then think about how you might implement each category. Be sure that your solution takes into account all features and requirements. 2. Create the pseudocode for your program. Be sure to do the following: o Use control structures. o Use indentation and white space. o keep it simple and concise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
