1)choose the file P15-OOPC-M2021-HotelBookingManagement.cpp
2)Compile the chosen file and compile that file in the terminal
3)Run the a.out in the terminal
Note: This code is written on ubuntu operating system. Users may find some errors when run using other compilers.
This module is used to book a room in the hotel. When user selects this a room(random room number) will be allotted to customer with randomly generated details and a bill will be generated based on the randomly generated days of stay and the randomly generated room type.
On selecting this, user will be asked for the room number. If the entered room number exists and is filled then the details of the customer in that particular room will be displayed. If the room is vacant then a message stating that room is vacant will be displayed and if the room number does not exists in the hotel then "Room does not exists" will be shown up.
This will show all the rooms filled and some basic details of the customer staying in the room
This module is used to modify details of the customer. On selecting user will be asked for which detail to change and on selecting the detail to be changed user will be asked for room number. If the room exists and is not vacant then that particular detail will be replaced by a new randomly generated detail.
This module is used to book food. On selection user will be asked for his room number. If the entered room number exists and is not vacant then user will be asked to select which meal(Breakfast/Lunch/Dinner) he want. On selection of meal a randomly generated menu will be displayed and asks for number of persons.On entering the persons bill will be displayed and will be added to main bill.
This will help the user to checkout. User will be asked for room number and on entering a valid and non vacant room number customer detais and the bill will be showed.The room will be marked as vacant and the customer details will be deleted.