Gyan Deep Shiksha Bharti: Computer Science

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

Gyan Deep Shiksha Bharti

COMPUTER SCIENCE (083)


PROJECT FILE
ON

PREPARED BY:
SUBMITTED TO:
Mr. Sumit Garg
Roll No: PGT(CS)

XII

Session: 2023-24
TABLE OF CONTENTS

Certificate
Acknowledgement
About Project
Coding

Requirements

Bibliography
Certificate of Completion

This is to certify that HARE KRISHAN


TRIPATHI of Class XII session 2023-24 of Gyan
Deep Shiksha Bharti hassuccessfully completed the
project work under my supervision. The student has
taken proper care and shown utmost sincerity in
completion of this project work.
It is certified that this project is up to my
expectation and as per the guidelines issued by
CBSE,New Delhi.

__________________ __________________
Acknowledgement
I would like to express my sincere gratitude to all those
who have contributed to the successful completion of
myClass XII Computer Science Project.
First and foremost, I would like to thank my Computer
Science teacher, Mr. Sumit Garg, for their invaluable
guidance and mentorship throughout this project. Their
expertise, patience, and willingness to address my doubts
have been instrumental in shaping this project.
I am also thankful to our school principal, Mrs. Rajni
Nautiyal, for providing me with the opportunity to
undertake this project and for the facilities and
resourcesmade available to me.
I would like to acknowledge the assistance and
cooperation of my classmates and friends who
providedvaluable insights and feedback during the
project's development.
Furthermore, I extend my gratitude to my parents and
family for their unwavering support, encouragement, and
understanding throughout this project.
Finally, I would like to thank the Central Board of
Secondary Education (CBSE) for designing a curriculum
that encourages practical learning and project-based
assessments, which have allowed me to develop
valuableskills and knowledge.
About Project

●Introduction of Project
●Purpose of the project
●Working of this software
●Software features
INTRODUCTION OF THE PROJECT

In an era characterized by rapid technological


advancements, the automotive industry stands at the
forefront of innovation, with a growing emphasis on
data-driven solutions to enhance user experiences.
Our project AUTOMOBILE SERVICES , represents a
groundbreaking initiative aimed at transforming
traditional automobile services by seamlessly
integrating user-generated data into the heart of the
automotive maintenance landscape.

At its core, our project involves the development of


an intuitive and user-friendly interface that empowers
vehicle owners to effortlessly input and share
relevant data. From routine maintenance schedules
to real-time diagnostics, automobile services acts as
a centralized repository, collecting and collating
diverse datasets to create a comprehensive profile
for each registered vehicle.
PURPOSE OF THE PROJECT

The purpose of the "Automobile Services Data Management


System" project is to create a comprehensive and efficient
platform for managing and storing data related to automobile
services. The project aims to streamline the process of
collecting, organizing, and accessing information provided by
users seeking automotive services.

Objectives:-

User Data Collection: The project will facilitate the collection


of essential data from users, including vehicle details, service
requirements, and contact information. This process aims to
create a user-friendly experience for customers seeking
automotive services.

Service Request Management: The platform will enable users


to submit service requests, detailing the specific issues or
maintenance tasks they require for their vehicles. This feature
ensures that service providers receive accurate and detailed
information about the customer's needs.

Automated Record-keeping: The project will implement


automated record-keeping functionalities to maintain a
chronological history of services provided to each customer.
WORKINGOFTHESOFTWARE

▶ Database Connection: Establishes a connection to a MySQL


databasenamed "AUTOMOBILE_SERVICES" usingthepymysql
library. Thedatabase connection parameters include the host,
user, password,and databasename.

▶ CustomerInformation Input: Prompts the userto enter personal


information such as name,city,phonenumber,vehicletype,and
vehicle model number.

▶ Available Services: Displays a list of available automobile


services stored in the available_services list.

▶ Service Selection: Asks the customerto choosea serviceby


entering the corresponding number.

▶ Service Information: Based on theselectedservice number,


provides information about the selected serviceandits
associatedcost. The service information and cost aredisplayed
using a series of if-elif-else statements.

▶ CustomerThankYou Message: Prints a thank you message to


thecustomer, acknowledging the recorded information and
informing them about future contact forservice.

▶ Database Insertion: Uses an INSERTquery to add the


customer'sinformation (name,city,phonenumber, vehicletype,
andmodel number)intothe"CUSTOMER_DETAIL" tablein the
database.

▶ Database Queryand Display: Executes a querytoselect all data


fromthe"CUSTOMER_DETAIL" tableand fetches the results.
Prints theretrieved data, including thenewly insertedcustomer
information.

▶ Database Commit andClosure: Commitsthechanges tothe


database(ensures that thedata is permanentlystored).
Closes the database connection tofree up resources.

 Noteon InvalidServiceSelection: If the customerenters an


invalid service number,it informsthemto select a validservice.
FEATURESOFTHESOFTWARE

UserInputHandling:Thesoftwareprompts theusertoinputvariousdetailssuch
asname, city,phonenumber, vehicletype,and model number, ensuringthat it
collectsnecessaryinformationfor theservice.

ServiceSelection:Userscan chooseaservicefromalistof availableservicesby


enteringthecorrespondingservicenumber. This allowsforcustomization
basedon thespecificneeds of thecustomer.

ServiceInformationandPricing: Providesdetailedinformationabouttheselected
servicealongwith its associated cost.This helpsthecustomer understandthe
servicestheyareoptingfor andthecorrespondingcharges.

Customer Thank You Message: After recording customer information and


service preferences, the software expresses gratitude to the customer and
assures them of future contact for service.

Database Query and Display: Retrieves and displays customer information


from the database, demonstrating the software's ability to interact with a
persistent data store.

Integration with External Library: Utilizes the pymysql library for interacting
with the MySQL database, showcasing the ability to integrate external
libraries for specific functionalities.
CODING
import pymysql

# Establish a connection to the MySQL database


conn = pymysql.connect(host="localhost",
user="root", password="mysql",
database="AUTOMOBILE_SERVICES")

cursor = conn.cursor()

# Prompt the customer to enter their information


customer_name = input("Please enter your name:
")
city = input("Please enter your city: ")
phone_no = input("Please enter your phone
number: ")
vehicle_type = input("Please enter your vehicle
type: ")
model_no = input("Please enter your vehicle
model number: ")

# List of available services


available_services = [
"1. Oil Change",
"2. Tire Rotation",
"3. Brake Inspection",
"4. Engine Tune-Up",
"5. Transmission Service",
"6. Air Conditioning Repair",
"7. Other Repairs",
]

# Display available services


print("\nAvailable services at our automobile
service station:")
for service in available_services:
print(service)

# Asking the customer to select a service by


number
selected_service = int(input("\nPlease enter the
number of the service you would like to choose:
"))

#Giving information to the customer on the basis


of selected service
if selected_service == 1:
print("the price for the oil changing is 700.00
Rs")
elif selected_service == 2:
print("the price for the inspection of tire rotation
is 300.00 Rs")
elif selected_service == 3:
print("the price for inspection of your brakes is
575.00 Rs")
elif selected_service == 4:
print("the price for engine tune up is 1540.00
Rs")
elif selected_service == 5:
print("the price for transmission service is
500.00 Rs")
elif selected_service == 6:
print("the price for A.C. repairing is 980.00 Rs")
elif selected_service == 7:
print('''the price for other repairs may vary
according
to your needs...
please contact at the centre''')
else:
print("\nInvalid service number. Please select a
valid service.")
# Thank the customer
print(f"Thank you {customer_name} We have
recorded your information.")
print(f"We will contact you on {phone_no} for
service of your {vehicle_type} And model:
{model_no}........")

print('''For other repairs, you have to contact the


service center.
You will be charged accordingly.....''')

# Insert customer information into the database


using an f-string
insert_query = f"INSERT INTO CUSTOMER_DETAIL
(customer_name, city, phone_no, vehicle_type,
model_no) VALUES ('{customer_name}', '{city}',
'{phone_no}', '{vehicle_type}', '{model_no}')"
cursor.execute(insert_query)
conn.commit()
print("Customer information has been saved to
the database.")

# printing data recieved in database


cursor.execute("select * from
CUSTOMER_DETAIL")
data=cursor.fetchall()
count=cursor.rowcount
for row in data:
print(row)

# Close the database connection


conn.close()
OUTPUT OF THE CODE
1st entry:-

2nd entry:-
Entries in mysql database:-
REQUIREMENTS

 HARDWARE REQUIRED

▶ Printer, to print the required


documentsof the project
▶ Compact Disc Driver
▶ Keyboard and Mouse
▶ Monitor
▶ Processor: Intel Core i3 or above
▶ Ram : 4 GB+
▶ Hard disk : 512 GB or above

 SOFTWARE REQUIRED

▶ Operating system: Windows 7 or


itssuccessors.
▶ Python IDLE, for execution of program.
▶ Microsoft Office for
presentation ofoutput.
BIBLIOGRAPHY
1. Guttag, John V. "Introduction to Computation and
ProgrammingUsing Python." MIT Press, 2016.

2. Lutz, Mark. "Learning Python: Powerful Object-Oriented


Programming." O'Reilly Media, 2013.

3. McKinney, Wes. "Python for Data Analysis." O'Reilly Media, 2017.

4. Grus, Joel. "Data Science from Scratch: First Principles


withPython." O'Reilly Media, 2019.

5. Van Rossum, Guido. "The Python Programming Language.


"Python Software Foundation, 2021. [Online] Available at:
https://www.python.org/doc/essays/blurb/.

6. Rossum, Guido van. "PEP 8 -- Style Guide for Python Code.


"Python Software Foundation, 2021. [Online] Available at:
https://www.python.org/dev/peps/pep-0008/.

7. W3Schools. "Python Tutorial." W3Schools.com, 2021.


[Online]Available at: https://www.w3schools.com/python/.

8. Various online documentation, tutorials, and forums that


provided essential guidance and code snippets during the
projectdevelopment process.

You might also like