GitHub Link - https://github.com/pagaredivyanka/AirFare
- Github: pagaredivyanka
- LinkedIn: divyanka-pagare
- E-mail: pagaredivyanka@gmail.com
A Java console application to calculate airfare for flights by different airline agencies. This project demonstrates the object-oriented programming concept in Java, including encapsulation - getter and setter methods, selection statement - switch case used to make it interactive via a simple menu-driven interface.
- Airline Management
- Define multiple airlines with specific base fares.
- Flight Management
- Define flights with specific airlines, origin, destination, and distance.
- Fare Calculation
- Calculate the airfare for a flight based on the distance and the airline's base fare.
- Java Development Kit (JDK) 8 or higher
- A terminal or command prompt for running the application
- git clone https://github.com/pagaredivyanka/AirFare.git
- cd AirFare
- javac -d bin src/*.java
- java -cp bin AirFare