omhandler blandt andet programmering i c++ og design
Project Title: Hotel Booking SystemProblem Statement:
A small motel has just purchased a computer for its new automated booking system. You have been asked to develop the new system. The system should be able to make room bookings, issue bills for residents, report room availability, and report total income.
Project Rules:
The capacity of the motel is 10 rooms.
There are two types of rooms: two-bedroom (rooms 1-3) and one-bedroom (rooms 4-10)
Price for two-bedroom is $200/night and the price for one-bedroom is $100/night.
The number of future residents making bookings is unknown.
The resident should choose the type of room and period of stay.
Any booking for any room type should be made for a maximum of three nights.
When there are no two-bedrooms available ask the resident if willing to go for the one-bedroom and vice versa.
If there are no rooms available, print a message to inform the resident of unavailability.
Never book a room that has been booked to another resident.
For each room booked, the program should print a bill indicating the resident name, room number, room type, room price per night, number of nights, and total price.
The program should also report the total sales per room type in a table format.
Make any assumptions as necessary.
Project Methodology:
The program should prompt the resident for room type: 1 for one-bedroom and 2 for two-bedroom.
Use a single-subscripted array to represent the room chart of the motel. Initialize all the elements of the array to 0 to indicate that all rooms are available. As each room is booked set the corresponding element of the array to 1 to indicate that the room is no longer available.
The program should make use of functions whenever possible. Projects without functions will not be accepted even if the program is complete and solves the problem.