Skip to content

furqan-56/Car-Rental-System

Repository files navigation

Car Rental System

Overview

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.

Features

  • Data Management: Cars are managed through a hierarchical class system with Car as 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:
    1. Choose a Car: Select from economy or luxury options.
    2. Specify Rental Duration: Determine how long the car will be rented.
    3. 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.

User Guide

Getting Started

To use the Car Rental System, follow these steps:

  1. Start the Program: Launch the system to display the main menu.
  2. Select a Car: Choose an option from the menu to select a car type and provide rental details.
  3. Enter Your Details: Input your personal information to complete the rental process.
  4. View Invoice: Review the detailed invoice generated by the system.
  5. Exit: Select the final menu option to exit the system.

Menu Options

  • 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.

Contributing

Contributions to enhance the system are welcome. Please fork the repository and submit a pull request with your proposed changes.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages