Question
Consider the following scenario: A small parking deck has hired you to create a new reservation system. Use a 2 dimensional array to note which
Consider the following scenario:
A small parking deck has hired you to create a new reservation system. Use a 2 dimensional array to note which spots are reserved for the day. Assume that you only reserve one day at a time.
There are two decks: first floor and second floor.
There are a 6 parking spots on each floor.
There is no elevator, so 2 spots on the first floor are reserved for handicap reservations. Only handicap reservations can be used for those parking spots at Spot 1 and Spot 2. You must determine that that reservation is a handicap reservation in order to book those spots. Only 2 handicap reservations can be accommodated, so verify availability.
There are 2 electric car spots on the first floor; only drivers with electric cars can request one of those parking spots. They are located at Spot 5 and Spot 6
For non-handicap and non electric car reservations, choose the next available spot from remaining spots.
Application Design requirements:
Create a C# application that prompts the user for the reservation type, verifies availability and reserves a parking spot.
For each reservation attempt, you should display a message telling the user that the reservation was confirmed or is Not available and print out the entire reservation schedule for that day as shown in the example below. You should also have a display option so that the reservation list may be viewed prior to selection of a room.
The reservation should be handled by a class that uses a 2 dimension array. (For example (only): Array[deck floor][spot number] ).
Example of output screen.
Bob Smith IT3883 Assignment 3
Your reservation Deck 1 Spot 3 is confirmed.
Deck# Parking Spot Status
1 1 Open
1 2 Open
1 3 Reserved
1 4 Open
1 5 Open
2 1 Open
2 2 Open
2 3 Open
2 4 Open
2 5 Open
Testing:
Your application must handle all possibilities correctly not just the specified test case below. Be sure to include with the following test cases in your screen shot:
Test cases:
1 non electric car non-handicap
1 non electric car non-handicap
1 non electric car handicap
1 non electric car handicap
1 non electric car handicap
1 electric car non-handicap
1 electric car non-handicap
1 electric car non-handicap
1 non electric car non-handicap
1 non electric car non-handicap
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started