A console-based Vehicle Rental System written in Java, built as part of the COMP2310 Object-Oriented Programming course at Birzeit University.
- Register multiple customers with rental limits
- Rent and return vehicles with real-time availability tracking
- Calculate total rental cost by days or by vehicle type
- Count rented vehicles by type per customer
- Display vehicles sorted by price or alphabetically by type
- Stores type, registration number, brand, daily rate, availability
- Includes constructors, getters/setters, and printInfo()
- Stores name, ID, license number, and array of rented vehicles
- Supports rent, return, cost calculation, and vehicle counting
- Manages program flow, user input, and the main menu
- Contains static utility methods for search and sorting
- Object-Oriented Programming (classes, encapsulation, method overloading)
- Custom sorting algorithms (no built-in sort methods used)
- Static utility methods
- Array manipulation
- Open project in Eclipse IDE
- Run the
Driver.javafile - Follow the prompts to enter customer details and rent vehicles
- Print Customer Information
- Display Total Rental Cost for a Customer
- Count Rented Vehicles by Type
- Rent a New Vehicle
- Return a Vehicle
- Display All Available Vehicles in Ascending Order of Price
- Display All Available Vehicles in Alphabetical Order of Type
- Exit
Enter number of customers: 2 Enter details for customer 1: Enter name: John Doe Enter ID: 1001 ... Vehicle ABC123 rented successfully.
- Course: COMP2310 — Object Oriented Programming
- University: Birzeit University
- Semester: Fall 2024/2025