Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aburraq/vehicleinsurancecalculator
This Vehicle Insurance Calculator could be my first Java project to understand OOP concepts. It is quite simple but very informative for beginners. I have found it on my projects and wanted to post here as a memory xx
https://github.com/aburraq/vehicleinsurancecalculator
java oop scanner-class switch-case
Last synced: about 1 month ago
JSON representation
This Vehicle Insurance Calculator could be my first Java project to understand OOP concepts. It is quite simple but very informative for beginners. I have found it on my projects and wanted to post here as a memory xx
- Host: GitHub
- URL: https://github.com/aburraq/vehicleinsurancecalculator
- Owner: Aburraq
- Created: 2024-01-09T20:15:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-09T20:21:47.000Z (about 1 year ago)
- Last Synced: 2024-11-11T23:11:55.684Z (3 months ago)
- Topics: java, oop, scanner-class, switch-case
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vehicle Insurance Calculator
This Java application calculates insurance payments based on vehicle types and tariff periods. It allows users to input their vehicle type and the desired term for insurance calculation, providing the corresponding payment amount based on predefined tariff rates.
## Features
- **Vehicle Types Supported**: Car, Truck, Bus, Motorcycle
- **Tariff Periods**:
- June 2023
- December 2023
- **Payment Rates** (Based on Term):
- **June 2023**:
- Car: $2000
- Truck: $3000
- Bus Type 1 (18-30 seats): $4000
- Bus Type 2 (31+ seats): $5000
- Motorcycle: $1500
- **December 2023**:
- Car: $2500
- Truck: $3500
- Bus Type 1 (18-30 seats): $4500
- Bus Type 2 (31+ seats): $5500
- Motorcycle: $1750
- **User Interaction**: Provides a menu-driven interface for users to input their choices and view insurance payment details.## Usage
To use this calculator:
1. Compile the Java files (`VehicleInsuranceCalculation.java`, `Vehicle.java`, `Main.java`).
2. Run the `Main.java` file to start the application.
3. Follow the on-screen prompts to input the desired term and vehicle type for payment calculation.
4. View the calculated insurance payment and choose to restart or quit.## Note
- Ensure valid input for vehicle types and term selections.
- Incorrect data entry prompts a warning message and allows the user to restart the calculation.