Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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 data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

Identify and explain the four areas of the Johari Window LO9 Model.

Answered: 1 week ago