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, 4 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
Juan wants a program that calculates and displays the number of miles per gallon he drove his car on a recent trip. When he started the trip, the car’s gas tank was full and its odometer read 5500. Before reaching his final destination, Juan stopped at two different gas stations to purchase gas. At the first stop, he purchased 15.5 gallons of gas; at that time, the odometer read 5860. At the second stop, he purchased 18.7 gallons of gas; at that time, the odometer read 6280. First, create an IPO chart for this problem. Although specific values are provided for the odometer readings and gallons of gas, do not use named constants for those values. After creating the IPO chart, desk-check the algorithm twice. For the first desk-check, use the values provided in this exercise. For the second desk-check, use your own set of data. After desk-checking the algorithm, list the input, processing, and output items in a chart similar to the one shown in Figure 3-25, and then enter the appropriate C++ declaration statements.

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-----------