Answer to Question #27925 in AJAX | JavaScript | HTML | PHP for thapelo

Question #27925
1. (a) Create a file containing the following car numbers, number of miles driven, and number of gallons of gas used by each car:
Car No. Miles Driven Gallons Used
54 250 19
62 525 38
71 123 6
85 1322 86
97 235 14
(b) Write a Java program that reads the data in the file created and displays the car number, miles driven, gallons used, and the miles per gallon for each car. The output should additionally contain the total miles driven, total gallons used, and average miles per gallon for all the cars. These totals should be displayed at the end of the output report.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS