CS21 Lab8: Searching and Sorting

Due Saturday, November 15 before midnight

Run update21, if you haven't already, to create the cs21/labs/08 directory. Then cd into this directory to create your program for this lab in the file fuelEconomy.py.


Introduction

The Environmental Protection Agency (EPA) gathers data about the gas usage of all vehicles sold in the US. We will use searching and sorting to explore this data allowing us to answer questions such as:

The file in /usr/local/doc/FEguide.txt contains the 2015 EPA data on over one thousand different vehicles. Here are some sample lines from this file:

General Motors,Chevrolet,K1500 TAHOE 4WD,18,2900,Standard SUV 4WD
General Motors,Chevrolet,TRAVERSE AWD,19,2750,Standard SUV 4WD
Chrysler Group LLC,Dodge,Durango AWD,19,2750,Standard SUV 4WD
Chrysler Group LLC,Dodge,Durango AWD,16,3400,Standard SUV 4WD
Ford Motor Company,Ford,Expedition 4WD,17,3100,Standard SUV 4WD
Ford Motor Company,Ford,EXPLORER AWD,19,2750,Standard SUV 4WD

Each line contains data on one particular vehicle including:

Your program will read in this data and allow the user to explore it by searching and sorting on different features. You will implement a basic menu to direct the user through various options. Here is a sample of how the program should operate.


Requirements

Make sure your program meets the following specifications.


Tips

Submit

Remember to run handin21 to turn in your completed code.