This repository contains a console application designed to help restaurant staff manage customer reservations. The system allows staff to add, search, update, and display reservations.
-
Available Sessions:
- There are four available sessions each day:
- 11:00 AM to 12:30 PM
- 12:30 PM to 2:00 PM
- 5:00 PM to 6:30 PM
- 6:30 PM to 8:00 PM
- Each session has 8 slots available.
- There are four available sessions each day:
-
Reservation Details:
- The system records the following information for each reservation:
- Customer name
- Customer phone number
- Booked session
- Reservation date
- Number of guests
- The system records the following information for each reservation:
-
Reservation Search:
- The staff can search for availability based on the customer's desired booking details, such as date, session, or number of guests.
-
Reservation Limitation:
- Reservations can only be added and searched for within the current month.
-
Restaurant Closure & Booking terms:
- The restaurant is closed for the first three days of every month. Reservations should be placed at least 3 days in advance.
-
Monthly Records:
- Reservations for each month are stored in separate text files for record-keeping.
-
Display Reservations:
- The system allows the staff to display all reservations or display reservations for a specific date.
-
Search Customer Record:
- Staff can search for a customer's record by entering the customer's name or phone number.
-
Check Availability:
- The system allows the staff to check the availability of reservations using the customer's desired date, desired session, or number of guests remaining in the available slot.
-
Add or Update Reservation:
- The system enables staff to add a new reservation or update an existing reservation record. To ensure the code works correctly, please follow these setup instructions:
-
Content of Files:
- August.txt should consist of reservation information for August 2024.
- September.txt should consist of reservation information for September 2024.
-
Replace Reservation List:
- Locate
#define LISTin the code and replace the list if necessary to match the prepared text files.
- Locate
- Vicrace Chan Jia Lin
- Leong Yue Chien
- Ng Sze Jin









