Question
Write a program to control a bread machine. Allow the user to input type of bread as W for White and S for Sweet. Ask
Write a program to control a bread machine. Allow the user to input type of bread as W for White and S for Sweet. Ask the user if the loaf size is double and if the baking is manual. The following table details the time chart for the machine for each bread type. Display a statement for each step. If the loaf size is double, increase the baking time by 50%. If the baking is manual, stop after the loaf-shaping cycle and instruct the user to remove the dough for manual baking. Use functions to display instructions to the user and to compute the baking time. Bread Time Chart
Operation White Bread Sweet Bread
Primary kneading 15 minutes 20 minutes
Primary rising 60 minutes 60 minutes
Secondary kneading 18 minutes 33 minutes
Secondary rising 20 minutes 30 minutes
Loaf shaping 2 seconds 2 seconds
Final rising 75 minutes 75 minutes
Baking 45 minutes 35 minutes
Cooling 30 minutes 30 minutes Requirements:
Use one function to display instructions and compute baking time
o Pass by value all variables needed
Great documentation
Use if and switch statements
o Switch would be ideal for choosing White or Sweet Bread
o If for baking time based on double, and manual vs baking.
Pseudocode hints:
//preprocessor //main()
//Declarations
//Gather input in main
//display and compute pass by value all input values
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started