A Fuel economy study was carried out for five models of cars. each car was driven 100 miles, and then the model of the car and the number of gallons used were placed in a line of the file Mileage.txt. Table 7.22 shows the data for the entries of the file. Write a program to display the models and their avarage miles per gallon in decreasing order with respect to mileage. The program should utilize an array of structures with upper bound 4, where aech structure has three members. The first member should record the name of each model of car. The second member should record the number of test vehicles for each model. The third member should record the total number of gallons used by that model.
DATA FOLLOWS:
Prius,2.1
Camry,4.1
Sebring,4.2
Mustang,5.3
Accord,4.1
Camry,3.8
Camry,3.9
Mustang,5.2
Accord,4.3
Prius,2.3
Camry,4.2
Accord,4.4