Pseudocode Your objective is to plan the program flow and logic for an electric coffee maker with the following features: 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. A pre-set time (hh-mm) to start brewing the coffee Three buttons labelled OFF, ON, and PROGRAM: When the OFF button is pressed, the machine does nothing other than display the current time. When the ON button is pressed, the machine starts brewing coffee. When the PROGRAM button is pressed, the machine waits for the pre-set time to begin brewing. An automatic sensor that detects whether all the water has been used. Once the water runs out, brewing stops. A heating sensor that keeps the coffee at a fixed temperature as long as the button is set to ON or PROGRAM

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 31PE
icon
Related questions
Question

Pseudocode

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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Structure chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage