--Originally published at Programming
Instructions: Write a program that opens and reads the file 93cars.dat.txt and produces the following data:
- average gas mileage in city (City MPG)
- average gas mileage on highway (Highway MPG)
- average midrange price of the vehicles in the set.
Data from: Journal of Statistics Education.
Code:
Data:
How it runs:
Mastery topics: Reading and writing of text files
![](https://pixel.wp.com/b.gif?host=fanyduran.wordpress.com&blog=122668218&%23038;post=783&%23038;subd=fanyduran&%23038;ref=&%23038;feed=1)