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 tables. With c# without oop concepts
Functionalities:
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.
View Reservations:
Display a list of all reservations with details and assigned table numbers.
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 eg increasing the number of people reassign tables as necessary or notify the user if the request cannot be accommodated.
Cancel Reservation:
List all reservations. User selects a reservation by ID to cancel it
View Table Status:
Display a list of tables with their current status eg Available, Reserved for Guest Name and reservation time if reserved.
Quit:
Exit the application.
Requirements:
Use only Lists to manage data. A list cannot contain any type of arraydictionarylist 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 nonexistent reservation should display an error message.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
