Create a program that reads in vehicle data in CSV format and allows the user to filter by the make
Create a program that reads in vehicle data in CSV format and allows the user
to filter by the make. The program will take in a filename as a command line
argument. When opening the file, the program should load all entries in to a linked
list for which each node contains a pointer to a vehicle struct. The program will
then populate a list of makes based on the data and present it to the user.
The user should be able to select one of the possible makes via keyboard input (see
example output). The program will then create a new linked list and copy the data
pointers of the original list into the temporary linked list which only holds entries
based on the user’s selection.
Data Format
- int year
- char *make
- char *model
- char *color
- char *license_plate
Other Requirements
- The CSV file must be input as a command line argument when running the
program.
- Nodes must be allocated for each vehicle read in the CSV file.
- Allocated memory must be freed before the program terminates.
- When building a new linked list of the selected make, use the allocated data
that was already created for the original list.
- Any function declarations, struct declarations, and library includes should be
in a corresponding header file (with header guard).
- Save your files as problem2.h and problem2.c.
Example Run
1. Alfa Romeo
2. Buick
3. Chevrolet
4. Ford
5. Honda
Select Make: 3
2001 Chevrolet Camaro Z28 (White) LIC#123313
2021 Chevrolet Corvette (Black) LIC#453FD3
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
