Question: Object Oriented / C++ Write a struct Car with four member variables (type, color, number, and price marks Car - type : string - color

Object Oriented / C++

Object Oriented / C++ Write a struct Car with four member variables

(type, color, number, and price marks Car - type : string -

Write a struct Car with four member variables (type, color, number, and price marks Car - type : string - color : string - number: int - price : double 2. Write a code to implement the class RentOffice that has three member variables (MaxNumOfCars, numOfCars, and a pointer of Car) 3 marka RentOffice MaxNumOfCars : int num OfCars : int list : *Car + RentOffice (int=20) + RentOffice(car&) +-RentOffice + insertEnd(Car) : void + deleteCar (int) : void + printAllCars() : void +getCar(int) : car 3. The constructor: will take the size of the list and build the dynamic array for Car and assign zero to the numOfCars. (Check that the size is not a negative number 12. marie 4. Copy constructor. Smarks 5. The destructor: will delete the dynamic array 6. insertEnd: will take an object of Car from the user who filled its data in the main and 3. The constructor: will take the size of the list and build the dynamic array for Car and assign zero to the numOfCars. (Check that the size is not a negative number 2 marka 4. Copy constructor.marks 5. The destructor: will delete the dynamic array 6. insertEnd: will take an object of Car from the user who filled its data in the main and insert it to the array of list. (check that there is no duplicate with Car number) 3 mark 7. deleteCar: will take the number of car and delete it from the list. 10 mark 8. searchCar: will take the Car type from the user and search for the Car. If the Car in the array then return its price. If not return 0 (zero). 4 marks 9. printAllCars: print all the Cars and the prices ....just a loop 3 marles 10. Mane member function search Car: will take the Car type from the user and search for the Car. If the Car in the array then return its price. If not return 0 (zero). 9 mars

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!