Question: Write the program in C#. No lists, queues, hashsets are allowed 3. Write a hotel management program with given interface. Each method (except constructor) should

 Write the program in C#. No lists, queues, hashsets are allowed

Write the program in C#. No lists, queues, hashsets are allowed

3. Write a hotel management program with given interface. Each method (except constructor) should take fixed time (not dependent on hotel size) class Hotel // Initializes the hotel of given size (initially all rooms are empty) /7 Total number of rooms remains constant since initialization. public Hotel (int total NumberofRooms) // returns true if at least one room is available, false otherwise public bool hasRoomsAvailable) // Is being called only when hotel the has at least one room available. // Reserves available room and returns its number to caller public int checkIn) ) // Is being called only by the person who occupy the room // (no need to check for parameter correctness). // Returns given room to the set of available rooms /1 (so its number can later be returned by checkIn method) public void checkout (int roomNumber)

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!