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.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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);
Trending now
This is a popular solution!
Step by step
Solved in 3 steps