Skip to content

Hassan9255/CAR-RENTAL-SYSTEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš— Car Rental Management System (Python)

A simple Car Rental Management System written in Python.
This console-based application allows users to rent cars, return them, and view total costs including tax and insurance.
It is a beginner-friendly project demonstrating the use of loops, conditionals, user input, and arithmetic operations.


๐Ÿ“‹ Features

  • โœ… Rent a car from available models
  • โœ… Choose insurance type (Liability or Full)
  • โœ… Automatically calculates:
    • Rental cost
    • 5% tax
    • Insurance cost
    • Total cost per rental
  • โœ… Return rented cars to update availability
  • โœ… View total accumulated costs
  • โœ… Handles invalid inputs gracefully

๐Ÿš˜ Available Cars

Car Model Availability Price/Day Liability Insurance/Day Full Insurance/Day
Camry 3 QR 90 QR 20 QR 50
Pajero 2 QR 150 QR 30 QR 70
Altino 2 QR 70 QR 20 QR 50

๐Ÿงฎ How It Works

  1. Run the program.
  2. Choose one of the following options:
    • 1 โ†’ Rent a car
    • 2 โ†’ Return a car
    • 3 โ†’ Print total costs
  3. When renting:
    • Select a car model (1โ€“3)
    • Enter number of rental days
    • Choose insurance type (L for Liability, F for Full)
  4. The system will display:
    • Rental cost
    • Tax (5%)
    • Insurance cost
    • Total amount to pay
  5. Repeat operations as needed (Y to continue, N to exit).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages