Question: Refer to Example 9.15. Add the following functionality to this program: Allow the user to enter the cost of a gallon of gas on each
Refer to Example 9.15. Add the following functionality to this program: Allow the user to enter the cost of a gallon of gas on each trip and use a function, Cost() to calculate the cost of purchasing gas for that trip. Display this information in the table with the rest of the information. You will need to add another parallel array, TripCost, to hold this information.
Step by Step Solution
3.53 Rating (156 Votes )
There are 3 Steps involved in it
Main Set Count 0 While Count 10 Write Enter a description of this trip Input ... View full answer
Get step-by-step solutions from verified subject matter experts
