In the previous lab, we used arrays to store passenger details efficiently. Now, the SkyReserve booking system is ready for the next step—assigning seats to each passenger.
Pre-Lab Preparation
git pull origin branchName
Git Pull
Task 1: Creating new class
1
Create class SeatBooking and create an 2D array inside it.
Topic :
1) Understanding of arrays (especially 2D arrays)
2) Understanding of for loop
3) Understanding of row and column indexing
2
Print Seat Structure using for loop
3
Run the code
4
Take Number of Passengers
5
Print Seat Structure using for loop
6
User Selects Seat (Row & Column)
7
Run the code
8
Display Final Seating
9
Run the code
Great job! You have successfully implemented a Flight Seat Booking System using a 2D array. Your SkyReserve application can now organize and manage seat reservations efficiently.
Checkpoint
Next-Lab Preparation
Topic :
1) Object creation and use of Scanner to set the instance variables
2) Declaring constructors and using constructor to set the instance variables