Crispies Bagels and Bites wants a program that allows its salesclerks to enter the number of bagels, donuts, and cups of coffee a customer orders. Bagels are 99 cents, donuts are 75 cents, and coffee is $1.20 per cup. The program should calculate and display the total price of the customer’s order. First, create an IPO chart for this problem, and then desk-check the algorithm twice. For the first desk-check, use 0, 12, and 2 as the number of bagels, donuts, and cups of coffee, respectively. For the second desk-check, use 2, 6, and 1.
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:
Crispies Bagels and Bites wants a program that allows its salesclerks to enter the number of
bagels, donuts, and cups of coffee a customer orders. Bagels are 99 cents, donuts are 75 cents,
and coffee is $1.20 per cup. The program should calculate and display the total price of the
customer’s order. First, create an IPO chart for this problem, and then desk-check the
twice. For the first desk-check, use 0, 12, and 2 as the number of bagels, donuts, and cups of
coffee, respectively. For the second desk-check, use 2, 6, and 1.
Input output flow
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images