https://github.com/surya101294/Train_Seating_Arrangement/tree/main
- HTML
- CSS
- JavaScript
- React
- NodeJS
- Express
- MongoDB
- There are 80 seats in a coach of a train with only 7 seats in a row and last row of only 3 seats. For simplicity, there is only one coach in this train.
- One person can reserve up to 7 seats at a time.
- If person is reserving seats, the priority will be to book them in one row.
- If seats are not available in one row then the booking should be done in such a way that the nearby seats are booked.
- User can book as many tickets as s/he wants until the coach is full.
- You don’t have to create login functionality for this application.
How it should function?
- Input required will only be the required number of seats. Example: 2 or 4 or 6 or 1 etc.
- Output should be seats numbers that have been booked for the user along with the display of all the seats and their availability status through color or number or anything else that you may feel fit.