Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write A computer Program in C++ that keeps track of car data CS162 Project 2 Goals for This Project: .Use structs and arrays to model
Write A computer Program in C++ that keeps track of car data
CS162 Project 2 Goals for This Project: .Use structs and arrays to model Abstract Data Type .Use C strings and functions Read from data file and write to data file using fstream Problem You Need to Solve for This Project You are asked to write an app to keep track of a car database. The app should load the cars information from a data file once the app is started. It should allow user to view, add, remove, and search for cars. The app should save the data back to the same data file when the program exits. What Your Program Should Do Write an interactive text based menu interface (using a loop) that will allow the user to Enter information for a new car Display information for all the cars in the database with index for each car .Remove a car by index .Search for cars by a certain origin (give the user a list of enum choices using letters or numbers) Search for cars by a certain name (partial string should work) Search for cars by model or any other field of your choice. Quit . For each car, you need to keep track of Car;MPG:Cylinders: Displacement;Horsepower;Weight;Acceleration;Model;Origin The data types for the above data would be: CHAR ARRAY;DOUBLE INT;DOUBLE:DOUBLE,DOUBLE,DOUBLE,INT;CAT where CAT is an enumerated data type used to keep track of the Origin dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started