Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedepaganelli/carrent
JavaFX application for managing car rentals
https://github.com/fedepaganelli/carrent
car javafx rental
Last synced: about 1 month ago
JSON representation
JavaFX application for managing car rentals
- Host: GitHub
- URL: https://github.com/fedepaganelli/carrent
- Owner: fedepaganelli
- Created: 2024-07-12T14:12:50.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T12:10:50.000Z (5 months ago)
- Last Synced: 2024-10-13T18:21:27.855Z (2 months ago)
- Topics: car, javafx, rental
- Language: Java
- Homepage:
- Size: 3.85 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CarRent
CarRent is a JavaFX application for managing car rentals. The application allows users to add, search, and rent cars, as well as view details of available cars.
## Features
- Add new cars to the system.
- Search cars based on various criteria (manufacturer, model, daily cost, transmission, number of seats, size).
- Rent cars by specifying the start and end dates of the rental period.
- Calculate and display the total rental cost in the terminal.
- View the status of cars (available or rented).
- Display car logos in the table (N.B.:we have limited the car manufacturers to 20).## Classes
### Car
Represents a car with attributes such as manufacturer, model, daily rental cost, transmission type, number of seats, size, and rental status.
### Controller
Controls the main application logic and interactions with the UI. Manages adding cars, searching cars, and handling car rental operations.
### AddCarDialogController
Manages the dialog window for adding new cars and validates user input thanks to the communication with the main Controller.
### RentCarController
Handles the renting process for cars. Allows users to select a car, specify rental dates, and calculates the total rental cost. Communicates with the main Controller to update the rental status of cars.
## Usage
1. **Add a New Car:**
- Click on the "Add Car" button and fill in the required details in the dialog.
- Press "OK" to add the car to the list.2. **Search Cars:**
- Use the text fields at the bottom of the table to filter available cars.3. **Rent a Car:**
- Select an available car from the table.
- Click on the "Rent Car" button and specify the start and end dates of the rental period.
- Press "OK" to confirm the rental and display the total rental cost in the terminal.## Authors
- [Federico Paganelli](https://github.com/fedepaganelli)
- [Gregorio Baldi](https://github.com/gregoriobaldi)