A small Taxi company has 10 cars each of which can carry 4 passengers. Develop a program with these technical details;
- Use parameterized constructor to initialize data members.
-Develop a global function “TaxiStatus” that prints Taxi status.
(used copy constructor).
- Make a menu driven main program to test all functions as followings.
1- Print Taxi status
Amini supermarket allow of postponing payment of goods for his known customers with some limits on the total debt1. The owner of supermarket decided to use a computer program to facilitate supermarket managing. With using this program, a lot of operations more easily such as finding the total debt for a certain customer, adding a new information of customer.
Suppose that a supermarket has only 10 customers, each customer can have 50 S.R as a debt for maximum.
Develop a program with the following technical details:
a) Use a parameterized constructor to initialize data members.
b)Develop a global function “CustomerInformation” that prints the customer information. ( use copy constructor).
A library has 7 small Cabinets each of which can contains 15 books as max. Develop a program with these technical details;
-Develop a global function “CabinetContent” that prints cabinets’ content.
(Use copy constructor).
To parking you care in the Garage, the employee needs to check the availability of garage before parking your car(there is only 15 parks), and he should know how many hours you will leave you car in the garage, If the hours of stay more than 24 hours you can not park your car.
. Use a parameterized constructor to initialize the data member.
Make a menu driven main program to test all functions as followings:
Develop a function parking the car, check available park, if all of them are full; alert message should be printed. If there is a one, inter the hours of stay. If the hours are more than24 print message "you cannot park", otherwise, make it not available any more until a car exit.
3- Print garage information
Develop global function prints available and unavailable park information in the garage.
(Use copy constructor)
لا تبخلوا بتبادل الحلول:D