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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!