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, 3 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
Write a C++ program to create a customer's bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player and Tape Recorder. The unit prices are $400.00, $220, $35.20, $300.00, and $150.00, respectively. The program must read the quantity of each piece of equipment purchased from the keyboard. it then calculates the cost of each item, the subtotal, and the total cost after an 8.25% sales tax.
The input data consist of a set of integers representing the quantities of each item sold. these integers must be input into the program in a user-friendly way; that is, the program must prompt the user for each quantity as shown below. the numbers in boldface show the user's answers. (Use void (),printf, scanf if needed BUT DO NOT USE COUT)
Sample Output
heading
The interaction or input into the program
How many TVs were sold? 3
How many VCRs were sold? 5
How many Remote Controllers were sold? 1
How many CDs were sold? 2
How many Tape Recorders were sold? 4
The output or result of the program A????1
Note how the decimal places are lined up and note how the quantity of decimals is shown by the value or the number of xA????1s.
Also note that we are using memory at all times in the class to declare variables, initialize values, and then recall those values from the memory.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll