Question: Q4. (40 marks) Create a class Booking that will handle room reservations of customers in a hotel for the next year. Assume that hotel has

 Q4. (40 marks) Create a class Booking that will handle room

Q4. (40 marks) Create a class Booking that will handle room reservations of customers in a hotel for the next year. Assume that hotel has N identical rooms which are numbered 1..N and that all the months have the same number of days of 30. As shown in the table below, the booking class should store information about the availability of each room for each day of the year. Date Jan 1 Jan 2 Jan 3 Jan 4 Jan 5 Jan 6 Jan 7 Jan 8 Jan 9 Room 1 2 3 4 0 8 0 8 10 8 10 0 10 0 0 9 22 0 22 0 0 0 AWN

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!