Question: I want to create a program using Java to simulate the process of getting a Ticket for a Plane. For this I have four sections:

I want to create a program using Java to simulate the process of getting a Ticket for a Plane. For this I have four sections: First class with a capacity of 50 and a price of $700, Bussiness class with a cpacity of 70 and price $500, Tourist class , with a capacity of 100 and a price of $350 and Basic class with a capacity of 200 and a price of $235. I need to create/ populate the seats. Seats having(Section, row, seat number). This has to be done using sets. I want to show the number of seats available.I also need to reserve the seats the client choose from the available seats, and reserve them. Storing their transaction in an arraylist. And using a HashMap to map the clients, with the seats they bought. Finally I need to show the users their final total. (In the reservations I also want to allow clients to choose from different sections if they want to)(Thanks in advance)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!