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
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
Get step-by-step solutions from verified subject matter experts
