Hotel management System project is a web based application which can automate entire management work of hotels through online like bill management , Payment process, booking rooms, customers information management..etc.

Hotel Management System Project Algorithms are explained Below:

Algorithm for form Load

Step1: Start the application

Step2: Wait until the program loads

Step3: This form automatically closes. 

Algorithm for Login

Step1: Start

Step2:  Select User Name

Step3:  Enter password

Step4:  Click on Login button

If (User ID) and (Password) is Valid then

Unload the user form from memory and

Load and show MDI Main form.

            Else

Display the message “Username and Password doesn’t match”

Go to Step2

Step5:  Stop 

Algorithm for Adding New User

Step1:  Start

Step2:  Go to system > manage user

Step3: Enter the administrative password to carry out the operation.

Step4: Click on Add New User and a field appears,

Step5:  Enter new User name, Password, Confirm Password.

Step6:  Click on save button for adding user and cancel button for cancelling operation.

Step7:  If all condition remains true then print message “Username Added”.

Step8: End 

Algorithm for Editing User’s record

Step1: Start

Step2: Go to system > manage user

Step3: Enter the administrative password to carry out the operation

Step4: Click on update user and a field appears,

Step5: Choose the user name you want to edit and Click on save button for adding user and cancel button for cancelling operation

Step6: if the User ID after editing is found on the database then print the message “User already exists”

Else save the record on the database with message

Step7: End

Algorithm for Deleting User’s record 

Step1:  Start

Step2:  Click on the user’s record from the list whom you want to Delete

Step3:  Click on the Delete button then print the message “Do you really want to delete this user”

Step4:  If click on yes the user will be deleted

            If click on no the operation will be cancelled

Step6: End

Algorithm for Adding New Room Reservation 

Step1: Start

Step2: Go to New Room Reservation

Step3: Click on New Button of the form

Step4: Fill all the given fields,

Step5: Click on Save button to save record or Cancel button to cancel the operation

Step6: If clicked Save

Print the message “Record Saved successfully”. And it saves the record to the database

Else program terminates to main form.

Step8:  Stop. 

Algorithm for Delete Record 

Step1: Start

Step2: Go to Customer > New Room Reservation

Step3: Click on Delete Button of the form

Step4: Enter the Reservation Number which you want to delete.

Step5: click on Ok button to delete record or Cancel button to cancel the operation

Step6: If clicked Ok

Print the message “Record Deleted successfully”. And it deletes the record from the database

Else program terminates to main form.

Step7:  Stop. 

Algorithm for Print Record 

Step1: Start

Step2: Click on Report >Print or Open the Room Reservation form and click Print.

Step3: The system calls the print function and starts printing if the printer is installed.

Step4: Stop

Algorithm for Backup 

Step1: Start.

Step2: Open Main form >Tools >Database Backup.

Step3: The form opens and asks the user to give the path.

Step4: Click on Ok to create backup or Cancel to cancel operation.

If Ok button is the program creates a backup in the specified path.

Else the program terminates to the previous form.

Step5: Stop.