Question: Goals for This Project: Using class to model Abstract Data Type OOP-Data Encapsulation Use dynamic arrays for all data members in both classes Use valgrind


Goals for This Project: Using class to model Abstract Data Type OOP-Data Encapsulation Use dynamic arrays for all data members in both classes Use valgrind to check for memory leaks 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 cuis. 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 dynamic arrays for all data members in both classes Use valgrind to check for memory leaks 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 cuis. 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
Get step-by-step solutions from verified subject matter experts
