Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions