Question: In C programming, write a hotel reservation system (Res system) that will enable guest to checkin and checkout from the hotel. The reservation system needs
In C programming, write a hotel reservation system (Res system) that will enable guest to checkin and checkout from the hotel. The reservation system needs to have a structure to keep track of room availability in a hotel. Specifications: 1- The hotle must have 10 rooms, each assigned a room number from 1 to 10. 2- The res system should keep track of the the rooms and if no rooms available, notyfy th user that hte hotel is full. 3- When a guest checks out the room should be returned to the pool of available rooms. 2- The Res system must ask and provide the user with the following questions/options and call a function for each option to complete the choice entered by the user. Tha options are:
Would you like: 1) To check in (enter: 1) 2) To check out (enter 2) 3) To print availability (enter: 3) 4) To quit (enter: 4)
In addition, add to the Res system so that in its struct it should store how many people are staying in each room. That is, when asking a party to check in, ask them how many people are in the party, and put all of the people in the party in the next available room. Add a function that calculates the total number of guests staying at the hotel and add an option to the menu to print out the total number of current guests. The Res system must keep track of the guests as they checkin and checkout.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
