(Solved) : Regards Pseudocode Program Flow Logical Order Variables Implied Design Account Everything Q44090990 . . .
In regards to the pseudocode below:
Does your program flow in a logical order?
What variables are implied by your design? Do they account foreverything in the problem statement?
What sections of the code might make sense to put in main()? Whatpieces of the code would make sense in a function or functions?
Pseudocode:
Read PRESET_TIME to start brewing coffee when the machine isstopped
If want to set machineTime
Press ON button twice
Set the HH:MM time
Press ON one more time
Else when the time is already set for the machine
Do nothing
ENDIF;
Add water and coffee to the machine
IF ON button is pressed
Start bowling water and mixing with coffee; this is brewingcoffee mechanism
IF machine is out of water:
Automatic sensor stops brewing coffee by machine
ENDIF;
IF coffee temperature is more than specified:
Heating sensor stops heating water
ENDIF;
Send the mix to glass container;
ENDIF;
IF OFF button is pressed
IF Machine is ON
Shut down the coffee brewing process
Display current time
ELSE
Do Nothing, just display current time
ENDIF;
ENDIF;
IF PROGRAM button is pressed
Wait for PRESET_TIME and then again start coffee machine.
IF coffee temperature is more than specified:
Heating sensor stops heating water
ENDIF;
ENDIF;
END;
Expert Answer
Answer to In regards to the pseudocode below: Does your program flow in a logical order? What variables are implied by your design…
OR