Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 307 Weeks Ago, 5 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 that creates three arrays named prices, units and amount. Each array should hold five doubles. Using a for loop and a cin statement, have your program accept and store in the appropriate array a price followed by the number of units. Calculate the amount and store it in the amount array. After entering five prices and amounts your program should display a table with totals as shown:
       Price   Units    Amount
        9.00    1.00      9.00
        8.00    2.00     16.00
        7.00    3.00     21.00
        6.00    4.00     24.00
        5.00    5.00     25.00
Total:Â Â 35.00 Â Â Â Â 15.00 Â Â 95.00
Press any key to continue . . . Â Â Â
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