Skip to content

gulgen/patika_java_course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patika Java Course

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.

Project Description

FlightTicketPriceCalculator

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:

  1. Distance: The base price of the ticket is calculated based on the distance (in kilometers) provided by the user.
  2. 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
  3. Trip Type: The user selects either one-way or round-trip. A 20% additional discount is applied for round-trip travel.

License

This project is licensed under the MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages