Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the code in C program to make a hotel management system which includes the following criteria - The System panel: a . Secure

I need the code in C program to make a hotel management system which includes the following criteria - The System panel:
a. Secure the system by creating a login screen to allow only the authorized person to log
in.(username: user, and password: 123456).
b. Create a main screen as a control panel to allow the authorized user to move between the different parts of the system including logging in as admin, log in as a reception staff, or exit from the system.
c. Allow the authorized user to choose the task from the above three tasks (login as
admin, login as reception staff, or exit from the system).
2. The Admin Control Panel:
a. If the user chooses to log in as an Admin; he should enter a username and password (username: user, and the password: 123456).
b. After logging into the system successfully, the admin control panel will appear.
c. The admin control panel include the following items:
i. Add Employee (ID, Name, age, gender, job, salary, phone, address, email)
ii. Add Room (Room number, status (available or occupied), cleaning status
(clean or dirty), price, bed type (single or double), discount percentage).
iii. Search Employee (use the Employee ID for the search). Apply the (Binary
Search Algorithm).
iv. Edit Employee data. Use the ID to search for the Employee. Apply (Binary
Search Algorithm).
v. Delete Employee. Use the ID to search for the Employee. Apply (Linear Search
Algorithm).
vi. Edit Room. Use the room number to search for the room. Apply (Binary Search
Algorithm).
vii. Show Rooms (unsorted).
viii. Show the Rooms sorted by number. Apply the (Quick-Sort Algorithm).
ix. Show the Rooms sorted by price (Consider the last price of the room after
applying a discount (if any)). Apply the (Bubble Sort).
x. Show the details of all complete booking operations. Allow the admin to search
by date (Use Binary Search). Show the total price of all booking operations per
day.
xi. Show the receipts generated by the system for all booking operations (random
receipt number, Date, room details (room number, type), and total amount).
Sort the receipts by the number. Apply the (Selection Sort Algorithm)
xii. Go back.
3. The Reception Control Panel:
a. If the user chooses to log in as a reception staff; he should enter a username and
password (username: user, and the password: 123456).
b. After logging into the system successfully, the reception control panel will appear.
c. The Reception control panel should have the following items:
i. New customer form (This form includes Customer ID type (passport, IC, etc.),
ID number, name, gender, country, allocated room number, check-in date and
time, number of staying days, total amount, initial payment, pending amount,
and deposit). Pending amount = total amount initial payment.
ii. Show all Rooms (unsorted).
iii. Search for the available rooms. (Apply Binary Search).
iv. Show the single bed Rooms sorted by price. Apply the (Merge Sort Algorithm).
v. Show the double bed Rooms sorted by price. Apply the (Bubble Sort
Algorithm).
vi. Show the information of all customers.
vii. Search for a customer by ID (Use Linear Search Algorithm)
viii. Search for a customer by room number (Use Binary Search Algorithm)
ix. Update room status. Use the room number to search for the room. Apply
(Binary Search Algorithm).
x. Update Customer information. Use ID to search for the customer. Apply
(Binary Search Algorithm).
xi. Show min and max price. Apply the min and max algorithm to show the
minimum and maximum price rooms.
xii. Delete Customer. Use ID to search for the customer. Apply (Binary Search
Algorithm).
xiii. Checkout form. (Customer ID, room number, check-in time, checkout time,
deposit, pending payment). The system should search for the customer by ID,
then any saved information must be shown in the checkout form. (Use Binary
Search Algorithm). At the end of this operation, the room status should be
changed from occupied to available.
xiv. Show an invoice for the customer, including the details (customer ID,
customer name, room number, initial payment, pending payment, and
deposit). The system should search for the customer by ID, then all customer
information must be shown. (Use Linear Search Algorithm).
xv. On the same screen, below the invoice, show a message to ask for payment (If
any pending payment), the system will collect the customer payment
(Example: Enter the amount tendered: (amount)); then will display the
change. (For example, if a customer paid 200 RM and the total amount of the
invoice is 50 RM, the money will be given back to him (Change) is 150 RM).
If the customer paid an amount less than the pending amount of the invoice,
show a message saying Money not enough, enter sufficient amount. If the
amount is enough; the system will show a receipt ready for printing. This
receipt contains the customer's details (ID and name), the total price, the
customer's initial payment entered into the system, and the change. The receipt
must have a unique random number, date, and hotel name.If the customer booked more than one room the room in the receipt must be sorted in non decreasing order by price( use selection sort algorithm)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Discuss the objectives of discipline and appeals systems

Answered: 1 week ago