السلام عليكم ورحمه الله وبركاته
ابي حل لهالسؤآل آو شرح له لاهنتوآ
To parking your care in the Garage, the employee needs to check the availability of garage before parking your car, and he should know how many hours you will leave you car in the garage. The Garage gives an offer depends on the hours you will leave your car in the garage. ( if Hours of stay less than 4 hours the Fee is 10.00 SR per 1 hour, Hours of stay more than 4 hours and less than 6 hours Fee is 6.00 SR per 1 hour, if more than 4 hours Fee is 2.00 SR per 1 hour. The garage has fixed number of parking (which given based on the arranging of park in the list park).Use constructor to initialize the data member.
Make a menu driven main program to test all functions as followings:
1-Parking
- 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 make sure to make it not available any more until the car is exit.
2- Exit
- Develop a function that exit(you need parking first) , ask the user to input the parking number, and validate it, is available. And give him the fee.
3- Print garage information
- Develop a function print which is global function that prints available and unavailable park information in the garage. (Use a copy constructor).
4- Get Number of parks in the Garage
Use this pointer in get all data members (You may not need set functions)