Question: 2- Declare a single structure data type suitable for a car structure of the type in the following chart: Car number 25 36 Miles driven

 2- Declare a single structure data type suitable for a car

2- Declare a single structure data type suitable for a car structure of the type in the following chart: Car number 25 36 Miles driven 1450 3240 1792 2360 2114 Gallons Used 62 136 76 105 67 52 68 Using the data type declared for the program, write a C++ program that interactively accepts the chart's data in an array of five structures. After the data has been entered, the program should create a report listing each car number and the car's miles per gallon. At the end of the report, include the average per gallon for the entire fleet of cars Output: Enter car number: 25 Enter car miles: 1450 Enter car gallons: 62 Enter car number: 36 Enter car miles: 3240 Enter car gallons: 136 Enter car number: 44 Enter car miles: 1792 Enter car gallons: 76 Enter car number: 52 Enter car miles: 2360 Enter car gallons: 105 Enter car number: 68 Enter car miles: 2114 Enter car gallons: 67 Number MPG 25 89900.00 36 440640.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!