Unformatted text preview: terminates the input. 7) Prompt for and accept the odometer miles and gallons for each gas purchase. 8) Calculate and display the mileage (mpg) for each gas purchase after its data is input. 9) After all data has been input, calculate the overall mileage(mpg_. 10) Display the overall mileage and a termination message "Done."...
View Full Document
- Winter '00
- mileage(mpg_., GasData type data, initial mileage