Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
28 views4 pages

Car Management System Project

Uploaded by

parthvba004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Car Management System Project

Uploaded by

parthvba004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Car Management System

Prepared By: [Your Name]


Class: [Your Class]
Roll Number: [Your Roll Number]
School Name: [Your School Name]
Subject: Computer Science
Teacher's Name: [Your Teacher's Name]
Acknowledgment
I would like to express my sincere gratitude to my Computer Science teacher, [Teacher's
Name], for providing me with the opportunity to work on this project. I am also thankful
for their guidance, support, and valuable feedback throughout the development of this
project. Additionally, I extend my thanks to my family and friends for their
encouragement during the creation of this Car Management System.

Abstract
This project focuses on developing a Python-based Car Management System designed to
automate and simplify operations such as adding, updating, searching, and managing car
records. The program also includes functionalities for renting cars and displaying
transaction details. By utilizing Python's file handling capabilities, this system offers an
efficient, user-friendly solution for managing car-related data.

Introduction
The Car Management System is a Python-based program developed to address the
challenges of managing car inventory, customer transactions, and rental processes. The
system leverages Python's file handling and modular programming capabilities to store
and retrieve data seamlessly. With a structured menu and intuitive functionality, it aims
to reduce manual errors, save time, and enhance operational efficiency.

This project avoids database usage, relying instead on text files for data storage. The
design ensures simplicity and accessibility while maintaining functionality.

Objectives
1. To develop a lightweight, text-file-based system for managing car records.

2. To simplify car rental operations and ensure accurate transaction records.

3. To provide a user-friendly interface for interacting with the system.

System Features
1. View Car Records: Display all car details from the records.

2. Search Car Records: Search for cars by company and model details.

3. Add Cars: Add new cars with details like company name, model, manufacturing year,
price, and seating capacity.
4. Remove Cars: Delete a specific car's record from the system.

5. Update Car Details: Modify existing car information.

6. Rent a Car: Process car rentals based on seating type and rental duration.

7. Exit System: Exit the program gracefully.

Tools and Technologies Used


Programming Language: Python

Development Environment: PyCharm

Key Libraries: os, datetime

Storage: Text files for data management

System Design

Functional Overview
1. File Handling: Car records are stored in a text file (car_management.txt), ensuring
persistence.

2. Menu Navigation: The system uses a structured menu for accessing various
functionalities.

3. Error Handling: Validations ensure data integrity, e.g., model numbers must be unique
and five digits long.

File Structure
1. car_management.txt: Stores car records in a tabular format.

2. welcome.txt: Displays a welcome message when the program starts.

3. thanks.txt: Displays a thank-you message when the program ends.

Key Code Snippets

Viewing Car Records

def car_1():

with open("car_management.txt", "r") as car:


data = car.readlines()

if data:

print("+----------------+-----------------+-----------------+-----------------
+-----------------+-----------------+")

print("| COMPANY NAME | MODEL NAME | MODEL NO. |


MANUFACTURE YEAR | PRICE (₹) | SEATER TYPE |")

print("+----------------+-----------------+-----------------+-----------------
+-----------------+-----------------+")

for record in data:

print("|", " | ".join(record.split()), "|")

else:

print("No records found.")

You might also like