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 driver’s 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.
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 driver’s 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.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images