This repository contains the code for various Java applications and projects done in the Patika Java Course. These projects are designed to enhance fundamental Java programming skills.
This program takes necessary data from the user to calculate the flight ticket price and applies various discounts to calculate the total ticket price. Based on the user's input, the following calculations are made:
- Distance: The base price of the ticket is calculated based on the distance (in kilometers) provided by the user.
- Age: Discounts are applied based on the user's age. The following age-based discounts are applied:
- 0-12 years old: 50% discount
- 13-24 years old: 10% discount
- 65 years or older: 30% discount
- Trip Type: The user selects either one-way or round-trip. A 20% additional discount is applied for round-trip travel.
This project is licensed under the MIT License.