Question: You are tasked with creating a system to manage table reservations for a boutique restaurant with only 5 tables. With c# ( without oop concepts

You are tasked with creating a system to manage table reservations for a boutique restaurant with only 5 tables. With c# (without oop concepts)
Functionalities:
1. Add Reservation:
- Allow the user to add a reservation with details like:
- Reservation ID
- Guest Name
- Number of people
- Date and Time
- The system should find and assign an available table for the reservation. If no tables are available, notify the user.
2. View Reservations:
- Display a list of all reservations with details and assigned table numbers.
3. Modify Reservation:
- List all reservations. User selects a reservation by ID to modify details like date, time, or number of people.
- If the modification affects table availability (e.g., increasing the number of people), reassign tables as necessary or notify the user if the request cannot be accommodated.
4. Cancel Reservation:
- List all reservations. User selects a reservation by ID to cancel it.
5. View Table Status:
- Display a list of tables with their current status (e.g., Available, Reserved for [Guest Name]) and reservation time if reserved.
6. Quit:
- Exit the application.
Requirements:
- Use only `List`s to manage data. A list cannot contain any type of array/dictionary/list object.
- Do not allow creation of a duplicate reservation based on Reservation ID.
- Ensure that reservations dont exceed table availability or the restaurant's capacity.
- Each of the above functionalities must be implemented in separate methods outside of the `Main()` method.
- Comment above each method explaining its purpose.
- Implement error handling. For instance, trying to modify a non-existent reservation should display an error message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!