Question
note: This is the main question the picture is reference picture. I need IPO chart and desk check for this question!! A third-grade teacher at
note: This is the main question the picture is reference picture. I need IPO chart and desk check for this question!! A third-grade teacher at Potter Elementary School wants a program that allows a stu- dent to enter the amount of money a customer owes and the amount of money the customer paid. The program should calculate and display the amount of change, as well as how many dollars, quarters, dimes, nickels, and pennies to return to the customer. Display an appropriate message when the amount paid is less than the amount owed. a. Create an IPO chart for the problem, and then desk-check the algorithm three times. For the first desk-check, use 75.34 and 80 as the amount owed and paid, respectively. For the second desk-check, use 39.67 and 50. For the third desk-check, use 10.55 and 9.75. b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 5-27. Then code the algorithm into a program. c. Desk-check the program using the same data used to desk-check the algorithm. d. If necessary, create a new project named Advanced15 Project, and save it in the Cpp8\Chap05 folder. Enter your C++ instructions into a source file named Advanced15.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the change in fixed-point notation with two decimal places. Display the remaining output in fixed-point notation with no decimal places. Test the program using the same data used to desk-check the program.
IPO chart information Input discount rate (10%) shipping rate 1 (299) shipping vate 2 (4 99) C++ instructions const double DISCOUNT_RATE 0.1; const double SHIP-CHG1 = 0.99; const double SHIP CHG2 4.99; double amt0wed 0.0; char member' amount owed member status (Y or N) Processing none Output amount owed uses the amtowed variable declared above Algorithm: 1. enter amount owed and member status cout "Amount owed before any discount and shipping:"; cin amtOwed; cout member; 2. if (member status is Y) if (toupper (member)Y) calcudlate amount owed bu multipluina amtOwed-amtOwed * mount owed by discount vate a then sulbtracting the result from amount owed DISCOUNT RATE; end if s, if (amount owed >=00) //end itf if (amtOwed >= 100.0) aad shipping vate i to amount owed else amtOwed SHIP CHG1; else add shipping rate 2 to amount owedl end i amtOwed += SHIP-CHG2; /end if coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started