Question: Write a program in C++ that keeps track of a car database. The program should load the cars information from a data file once the

Write a program in C++ that keeps track of a car database. The program should load the cars information from a data file once the program is started. It should allow user to view, add, remove, and search for cars. The program should save the data back to the same data file when the program exits. All the cars should be stored in an array. Also this program needs to work on unix as well as windows.

Write a program in C++ that keeps track of a car database.The program should load the cars information from a data file once

Goals for This Project: Using class to model Abstract Data Type OOP-Data Encapsulation 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 data. Goals for This Project: Using class to model Abstract Data Type OOP-Data Encapsulation 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 data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!