This is a simple console-based Flight Booking System implemented in Java. The system allows users to book, cancel, and print details of flight tickets. It supports two flights with a fixed number of tickets and cost per ticket. The system also keeps track of passenger details and provides a refund for canceled tickets.
- Book tickets for Flight 1 or Flight 2.
- Cancel tickets with a refund, decreasing the ticket price by 200 for each cancellation.
- Print details of booked tickets for both flights.
- Exit the program.
- Compile and run the Java program (Main.java) using your preferred IDE or command line.
- Choose the desired option:
- Book tickets
- Cancel tickets
- Print details
- Exit
- Enter the flight number (1 or 2).
- Specify the number of tickets to book.
- The system checks availability and provides booking details.
- Enter the flight number (1 or 2) and passenger ID.
- The system checks validity and provides a refund for canceled tickets, decreasing the ticket price by 200 for each cancellation.
- Displays details of booked tickets for both flights.
- Terminates the program with a "Thank you!" message.
- Flight 1 and Flight 2 have a fixed number of tickets and an initial cost per ticket.
- The cost per ticket increases by 200 for each booked ticket.
- The ticket price decreases by 200 for each canceled ticket.
If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
If you find this project helpful or would like to contribute to its continued development, consider supporting me with a coffee! Your support is invaluable.