Modify the IPO chart shown earlier in Figure 2-22 so that it also displays the cost per

Question:

Modify the IPO chart shown earlier in Figure 2-22 so that it also displays the cost per mile driven. Desk-check the algorithm using 324, 17, and $3.10 as the miles driven, gallons used, and cost per gallon of gas. Then desk-check it using 450, 20, and $2.75. 


Input miles driven Processing Processing items: none Output miles per gallon gallons used Algorithm: 1. enter the miles driven and gallons used 2. calculate the miles per gallon by dividing the miles driven by the gallons used -3. display the miles per gallon each instruction begins with a verb Figure

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: