Our Car Rental System is structured around a set of classes designed to manage the complexities of a rental service. The system includes a Car class with derived classes Economy and Luxury to handle specific types of cars, and a Customer class for managing customer information. The RentalSystem class integrates these components to facilitate car rentals and generate detailed invoices.
- Data Management: Cars are managed through a hierarchical class system with
Caras the base class. - File Input: Car data is retrieved from a text file and organized into an array for easy access.
- User Interaction: The system offers a menu-driven interface, allowing users to:
- Choose a Car: Select from economy or luxury options.
- Specify Rental Duration: Determine how long the car will be rented.
- Provide Customer Information: Enter details such as name, phone number, and address.
- Invoice Generation: After inputting all necessary data, the system generates an invoice that includes car details, rental period, customer details, and total fare.
To use the Car Rental System, follow these steps:
- Start the Program: Launch the system to display the main menu.
- Select a Car: Choose an option from the menu to select a car type and provide rental details.
- Enter Your Details: Input your personal information to complete the rental process.
- View Invoice: Review the detailed invoice generated by the system.
- Exit: Select the final menu option to exit the system.
- Option 1: Retrieve car data.
- Option 2: Choose a car and specify rental details.
- Option 3: Input customer information and generate an invoice.
- Option 4: Exit the system.
Contributions to enhance the system are welcome. Please fork the repository and submit a pull request with your proposed changes.
This project is licensed under the MIT License - see the LICENSE.md file for details.