WSQ 13 – Cars

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:

Captura de pantalla 2017-05-04 a la(s) 15.49.08

Data:

Captura de pantalla 2017-05-04 a la(s) 15.53.16.png

How it runs:

Captura de pantalla 2017-05-04 a la(s) 15.48.57

 

Mastery topics: Reading and writing of text files

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s