The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Tea Time Company wants a program that allows a clerk to enter the number of pounds of tea ordered, the price per pound, and whether the customer should be charged a $15 shipping fee. The program should calculate and display the total amount the customer owes. Use an int variable for the number of pounds, a double variable for the price per pound, and a char variable for the shipping information.
a. Create an IPO chart for the problem, and then desk-check the algorithm twice. For the first desk-check, use 10 as the number of pounds and 12.54 as the price per pound; the customer should be charged the shipping fee. For the second desk-check, use 5 as the number of pounds and 11.59 as the price; the customer should not be charged the shipping fee.
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-37. Then code the algorithm into a program.
c. Desk-check the program using the same data used to desk-check the algorithm.
d. Enter your C++ instructions into a source fi le named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.
e. Save and run the program. Test the program using the same data used to desk-check the program.

Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------