Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are contracted to complete the data system for Citywide Taxi Company. Now, the information for each taxi is expanded to include: taxi id (such
You are contracted to complete the data system for Citywide Taxi Company. Now, the information for each taxi is expanded to include: taxi id (such as CTC0001), the drivers name, the maker of the Car (such as Ford), the model of the car (such as Escape), the Color of the Car (such as Black), the license number (such as HXT 4578), the number of passages the car served in the entire shift (integer type, this field will be left empty for this project).
Your C++ program will (with array of class object):
- Define a class for the car with all members of variable mentioned above as private;
- Write all necessary class member functions to access those member variables (write or read);
- Read up to 50 records of data from the keyboard (provide a method to end the input before reaching 50 records);
- Save all records inputted from step 3 to a disk file called CTC.dat.
Step 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