Write a program to control a bread maker machine. Allow the user to input the 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 percent. If 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 as follows: /* the function ComputeBakingTime returns double value based on type of bread, the baking type and the size of loaf */ double ComputeBakingTime (char Bread_Type, int isManual, int isDouble); /* the function instructions display intruction to the user */ *void instructions (double BakingTime, char BreadType) ; Table 1: Bread Time Chart Operation Primary kneading Primary rising Secondary kneading Secondary rising Loaf shaping Final rising Baking Cooling White Bread 15 mins 60 mins 18 mins 20 mins 2 seconds 75 mins 45 mins Sweet Bread 20 mins 60 mins 33 mins 30 mins 2 seconds 75 mins 35 mins 30 mins 30 mins

icon
Related questions
Question

***please use C++ programming language and please put in comments in the code. 

Question 1
Write a program to control a bread maker machine. Allow the user to input the 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 percent. If 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 as follows:
/* the function ComputeBakingTime returns double value based on type of bread, the baking type and the size of loaf */
double ComputeBakingTime (char Bread_Type, int isManual, int isDouble) ;
/* the function instructions display intruction to the user */
*void instructions (double BakingTime, char BreadType);
Table 1: Bread Time Chart
Operation
Primary kneading
Primary rising
Secondary kneading
Secondary rising
Loaf shaping
Final rising
Baking
Cooling
White Bread
15 mins
60 mins
18 mins
20 mins
2 seconds
75 mins
45 mins
Sweet Bread
20 mins
60 mins
33 mins
30 mins
2 seconds
75 mins
35 mins
30 mins
30 mins
Transcribed Image Text:Question 1 Write a program to control a bread maker machine. Allow the user to input the 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 percent. If 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 as follows: /* the function ComputeBakingTime returns double value based on type of bread, the baking type and the size of loaf */ double ComputeBakingTime (char Bread_Type, int isManual, int isDouble) ; /* the function instructions display intruction to the user */ *void instructions (double BakingTime, char BreadType); Table 1: Bread Time Chart Operation Primary kneading Primary rising Secondary kneading Secondary rising Loaf shaping Final rising Baking Cooling White Bread 15 mins 60 mins 18 mins 20 mins 2 seconds 75 mins 45 mins Sweet Bread 20 mins 60 mins 33 mins 30 mins 2 seconds 75 mins 35 mins 30 mins 30 mins
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Header Files
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.