- This console-based bus ticket booking app takes the input including number of passengers, each passenger details and payment method, in the following format:
1
A 21 F
B 22 F
card
It gives the following output on successful seat booking:
Total Amount: 517.4
Seats alloted: S10 S11
Following output when unsuccessful:
Sorry, seats not available
- books consecutive seats for groups if available
- books seat adjacent to same gender, and if not possible, asks for confirmation with non-confirming seat
- nodeJS, Javascript
- TDD using Jest