In this project, you will be reading through the Vehicle dataset to track occurrences of the vehicles. The goal of the program is to count the type of vehicles and the number of each make and model.
The overview for Project:
You are to write an OOP implementation (at least one other relevant/important class other than the Driver) to track the count of Vehicles found in a dataset using HashMap data structures.
The Vehicle dataset file:
Each line contains a type, a make, and a model of a vehicle.
There are 3 types (car, truck, suv).
There are 10 makes (Toyota, Ford, etc..)
Each make will have between 2 to 6 models (E.G. Toyota would have Tundra, Highlander, Prius, etc.).
The HashMap's creation:
These are look up tables (dictionary) with key/value pairs too be able to look up information about the vehicles.
Read through the data to create the HashMaps. There can/will be many duplicates of each vehicle.
Processing and Requirements
The Driver should not contain the HashMaps.
Read through the file to create the HashMaps.
You will need a HashMap to keep count of the number of each type of Vehicle (car, truck, or suv). This HashMap is by itself, it doesn't have to be linked or associated with any other data structure.
You will need another HashMap to keep track of the makes.
for each make you will need to store each model of vehicle and the number times that model is found in the dataset.
You will need to make Junit test class/es (Junit 5 or 4 are acceptable) and method tests for all Object classes methods (excluding any print or toString method/s and the Driver Class).
Make sure your output is legible and spaced well.
Using the HashMaps, your program should output (along with appropriate identifiers):
Which type of vehicle was found the most in the data.
The 3 types (car, truck, suv) and total count for each.
Which make of vehicle (Toyota, Ford, etc..) was found the most in the dataset. This should be based on the total number of each model of the make.
Which make of vehicle (Toyota, Ford, etc..) was found the least in the dataset. Again based on the total number of each model of that make.
All the makes, the models of each make of vehicle, the number of times each model of that make was found, and the total number of vehicles of the make. This does NOT have to be in any specific order.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.