WSQ13 – Cars

car flickr photo by Kentaro Ohno shared under a Creative Commons (BY) license

What To Do

File input/output is our access to permanent stores of data that last beyond the run time of our application.

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.

You can find the data set at the following link from the Journal of Statistics Education.

What to Submit

As usual, create a blog post explaining what you did, where you found resources (books, videos, web pages, friends) to help you solve this. Remember to put the tag #WSQ13 on your post so our blog hub picks that up.

You should include your code as a link to GitHub.

And of course, leave any questions here as well as asking those questions in our Slack channel so we all see your question posted there.

Feature Image Credit

<a title="car" href="https://flickr.com/photos/inucara/8441125237">car</a> flickr photo by <a href="https://flickr.com/people/inucara">Kentaro Ohno</a> shared under a <a href="https://creativecommons.org/licenses/by/2.0/">Creative Commons (BY) license</a> </small>
car flickr photo by Kentaro Ohno shared under a Creative Commons (BY) license

CC BY-SA 4.0 WSQ13 – Cars by Bauer Ken is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.