Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Car Rental PDF

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 22

CERTIFICATE

It is to be Certified that the project entitled ‘Gas


Agency Management System’ submitted by Devansh
Pathak class 12th- E for the A.I.S.S.C.E. 2023 C.B.S.E.
Board Practical Examination in computer science,
embodies the original work done by the candidate.
The candidate carried out his work sincerely.

We have carefully gone through the contents


of the project & are fully satisfied with the work
carried out by him,

It is further certified that the candidate has


completed all the prescribed requirements governing
the syllabus of C.B.S.E. Sr. Sec Board.

Signature
Signature
Gulshan Sharma Dr.
Urmila Vajpai
1
( PGT Computer Science )
( Principal )

Acknowledgement

In the 'odyssey' of 'life' the reverie to


subjugate the zenith of goal to many known &
unknown hands obtrude me learnt souls put me on
right path & enlightened with their knowledge &
experience. I shall ever remain grateful to them.
Words are inadequate to express my sincere &
deepest sense of gratitude to my guide & teacher
Gulshan Sharma for his benevolent guidance,
constructive counsel, & meticulous supervision,
constant inspirations & wholehearted encouragement
throughout the year.

2
At last I shall heartily thank to my
parents & for their love, care, concern & lots of
inspirations.

Devansh Pathak
Class : 12th – E
Sacred Hearts Sr. Sec.
Public School

3
Introduction to Project
The Gas Agency Management System is a comprehensive software solution designed to automate
and manage the end-to-end operations of a Gas Agency business. From customer reservations and vehicle
tracking to billing and reporting, the system integrates various functionalities to ensure a seamless and
organized workflow.
It caters to the dynamic requirements of the industry, providing real-time insights and control over
the fleet, bookings, and financial aspects of the business.

 CREATE ACCOUNT
 CUSTOMER DETAIL
 SEARCHING CUSTOMER
 EDIT CUSTOMER RECORDS
 MAKE BILL

OBJECTIVE

During the past several decades’ personnel function has been transformed from a relatively obscure
record keeping staff to central and top level management function. There are many factors that have

4
influenced this transformation like technological advances, professionalism, and general
recognition of human beings as most important resources.

 A computer based “Gas Agency Management System” is designed to handle the primary
activities of the Gas Agency Management System to maintain the records of the MEMBERS in an
efficient way which save the time.

 This project intends to introduce more user friendliness in the various activities such as addition
of records, editing the information and updation, maintenance, and searching the records.

 Similarly, record maintenance and updation can also be accomplished by using the
identification of the MEMBER with all the details being automatically generated. These details are
also being promptly automatically updated in the master file thus keeping the record absolutely up-
to-date.

 The entire information has maintained in the database or Files and whoever wants to retrieve
can’t retrieve, only authorization user can retrieve the necessary information which can be easily be
accessible from the file.

ADVANTAGE:

I have designed the given proposed system in the Python to automate the process of “Gas
Agency Management System” because it is an Object Oriented Language and good for application
softwares. This project is useful for the maintaining the records of the Gas Agency Management.

The following steps that give the detailed information of the need of proposed system are:

Performance: During past several decades, the records are supposed to be manually
handled for all activities. The manual handling of the record is time consuming and highly prone to
error. To improve the performance of the “Gas Agency Management System”, the computerized
system is to be undertaken. This project is fully computerized and user friendly.

Efficiency: The basic need of this software is efficiency. The software should be efficient so that
whenever a user performs his/her work the records are updated automatically. This record will be
useful for other transactions instantly.

Security: Security is the main criteria for the proposed system. Since illegal access may corrupt the
database. So security has to be given in this project.
5
Future Scope and Further Enhancement of the Application

This project can be used in the Gas Agency Management System after adding some more useful
modules in the project.

So there are many things for future enhancement of this project. The future enhancements that
are possible in the project are as follows.

 In the area of data security and system security.


 Provide more online tips and help.
 Providing facility to share the system for multiple users
 By including the features to maintain the expenditure of the department.

Hardware and Software


Requirement

Hardware Required

Hardware Minimum requirements

Computer Intel® or compatible Pentium 333 MHz or higher.

6
Memory
64 MB Minimum; 128 MB Recommended
(RAM)

Hard disk 1 GB for the database and the client software. This
space requirement may increase with the increase in records.

VGA or higher resolution. 800x600 or higher resolution


Monitor
required for the SQL Server graphical tools

Pointing
Microsoft Mouse or compatible
device

Required for installation purposes only. During the life


time of this software it is not at all required. However, it
CD-ROM drive
is recommended to use CD-RWs to take periodical
backups.

Software Required

Software Description

Operating
Microsoft Windows or DOS or Linux or Unix
System

Python
Anaconda / Python 3.7
Interpreter

MS – Office /
Word Processor for Documentation
Open Office

7
Introduction to Python Programming

Python is a high-level, interpreted, interactive and object oriented-scripting language. Python was
designed to be highly readable which uses English keywords frequently where as other languages use
punctuation and it has fewer syntactical constructions than other languages.

 Python is interpreted: This means that it is processed at runtime by the interpreter and
you do not need to compile your program before executing it. This is similar to PERL and PHP.
8
 Python is Interactive: This means that you can actually sit at a Python prompt and
interact with the interpreter directly to write your programs.

 Python is Object-Oriented: This means that Python supports Object-Oriented style or


technique of programming that encapsulates code within objects.

 Python is Beginner's Language: Python is a great language for the beginner programmers
and supports the development of a wide range of applications, from simple text processing to
WWW browsers to games.

History of Python:
Python was developed by Guido van Rossum in the late eighties and early nineties ( February 1991 ) at
the National Research Institute for Mathematics and Computer Science in the Netherlands.

Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68,
SmallTalk, and UNIX shell and other scripting languages.

Python is now maintained by a core development team at the institute, although Guido van
Rossum still holds a vital role in directing its progress.

Python is named after British TV Show – “Monty Python’s Flying Circus”.

Python's feature highlights include:


 Easy-to-learn: Python has relatively few keywords, simple structure, and a clearly defined
syntax. This allows the student to pick up the language in a relatively short period of time.

 Easy-to-read: Python code is much more clearly defined and visible to the eyes.

 Easy-to-maintain: Python's success is that its source code is fairly easy-to-maintain.

 A broad standard library: One of Python's greatest strengths is the bulk of the library is
very portable and cross-platform compatible on UNIX, Windows, and Macintosh.

 Interactive Mode: Support for an interactive mode in which you can enter results from a
terminal right to the language, allowing interactive testing and debugging of snippets of code.

 Portable: Python can run on a wide variety of hardware platforms and has the same interface
on all platforms.

 Extendable: You can add low-level modules to the Python interpreter. These modules enable
programmers to add to or customize their tools to be more efficient.

 Databases: Python provides interfaces to all major commercial databases.

 GUI Programming: Python supports GUI applications that can be created and ported to many
system calls, libraries, and windows systems, such as Windows MFC, Macintosh, and the X
Window system of Unix.

 Scalable: Python provides a better structure and support for large programs than shell
scripting.

9
Apart from the above mentioned features, Python has a big list of good features, few are listed below:

 Support for functional and structured programming methods as well as OOP.

 It can be used as a scripting language or can be compiled to byte-code for building large
applications.

 Very high-level dynamic data types and supports dynamic type checking.

 Supports automatic garbage collection.

 It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.

Some Minus Features of Python:


 Not the fastest Language

 Lessor Libraries than C, Java, Perl.

 Not strong on type - binding

 Not easily convertible

MySQL
MySQL is an open-source relational database management system (RDBMS). Its name is a combination of
"My", the name of co-founder Michael Widenius's daughter, and "SQL", the abbreviation for Structured
Query Language.
MySQL is free and open-source software under the terms of the GNU General Public License, and is also
available under a variety of proprietary licenses. MySQL was owned and sponsored by
the Swedish company MySQL AB, which was bought by Sun Microsystems (now Oracle Corporation). In
2010, when Oracle acquired Sun, Widenius forked the open-source MySQL project to create MariaDB.

Sometime, it is important to store the information entered by the user into the database for further use.
After storing the information into the database, later we can retrieve those information from that
database. The latest version of MySQL is one of the world’s most popular databases. It is open source,
reliable, compatible with all major hosting providers, cost-effective, and easy to manage. Many
organizations are leveraging the data security and strong transactional support offered by MySQL to
secure online transactions and enhance customer interactions. However, enterprises using MySQL are
presented with several challenges when their apps experience exponential growth and they need
additional scale.

Along with understanding why MySQL is the go-to solution for high-growth environments, it is equally
important to understand the challenges that can cripple your business operations. Here are 5 major reasons
to use MySQL along with its most common challenges:

5 REASONS TO CHOOSE MYSQL

Secure Money Transactions


MySQL transactions work as a single unit, which means unless and until every individual operational stage
is successfully completed, the transaction is not cleared. So, if an operation fails at any stage, the entire
transaction happening within that group fails. MySQL ensures that financial transactions have data
integrity, so customers can make worry-free transactions online.

10
On-Demand Scalability
MySQL comes with the advantage of unmatched flexibility that facilitates efficient management of deeply
embedded applications, even in gigantic data centers that stack tremendous amounts of mission-critical
information. It enables complete customization to cater to the unique requirements of eCommerce businesses
with a much smaller footprint.

High Availability
Consistent availability is the stalwart feature of MySQL – enterprises that deploy it can enjoy round-the-
clock uptime. MySQL comes with a wide variety of cluster servers and master-slave replication
configurations that enable instant failover for uninterrupted access.

Rock-Solid Reliability
Protecting sensitive business information is the primary concern of every enterprise. MySQL ensures data
security with exceptional data protection features. Powerful data encryption prevents unauthorized viewing
of data and SSH and SSL supports ensure safer connections. It also features a powerful mechanism that
restricts server access to authorized users and has the ability to block users even at the man-machine level.
Finally, the data backup feature facilitates point-in-time recovery.

Quick-Start Capability
You can go from software download to complete installation in just 15 minutes. MySQL is exceptionally
quick, regardless of the underlying platform. It features self-management capabilities like auto restart, spass
expansion and automatic configuration changes for ease of management. MySQL enables real-time
performance monitoring for timely troubleshooting of operational issues from a single workstation.

5 CHALLENGES OF SCALING MYSQL

Long Development Time


Scaling frameworks that cannot be optimized with master/slave setups requires extensive development time.
Replication lag further complicates app logic because it disrupts the data consistency between the slave and
the master. Finally, MySQL server modifications need constant coordination between database teams and
apps.

Replication
MySQL servers often run into replication conflicts during a manual failover when multi-master setups are
involved.

Database Logging Costs


Database logging is expensive and so it remains disabled most of the time. As a result, organizations lack
real-time visibility into slow logs, which delays troubleshooting.

Query Caches
MySQL server query cache is of little help when handling a high volume of workload, because cache
invalidation cannot be controlled.

High Connection Churn


If your apps rely on a LAMP stack, they tend to have a high volume of user sessions running concurrently
and, consequently, they experience a high connection churn. So most of your valuable server resources are
exhausted on connection management.

11
12
Modules Imported in the Projects
And Their Functions
Other than Python Standard Library modules, some other modules are imported in the
project to perform some specific task. These are :

 random
 randint() – To access random value

 datetime
 today( ) – To return current system date

 sys
 exit( ) – To terminate execution of the program

13
# ************** Project on Gas Agency Management System *****************

14
import mysql.connector as sql , datetime as dt
import sys
conn=sql.connect(host='localhost',user='root',passwd='',database='gasin')
if conn.is_connected():
print("connected")
mycursor=conn.cursor()

mycursor.execute("create table gasin(v_customer varchar(30) primary key , v_accno


bigint,v_date date,v_add varchar(40), v_cng bigint, v_lpg bigint, v_debit
bigint,v_amtobe_paid bigint , v_credit bigint)")
print("GAS INVENTORY MANAGEMENT SYSTEN")
passw=input("enter your password to continue:")
passwd=input('confirm your password')

if (passw == passwd):
print("your password is correct")
else:
print("invalid")
for i in range (0,999999999999999):
print("1.CREATE ACCOUNT")
print("2.TO MAKE BILL")
print("3.TO GET DETAILS OF THE CUSTOMER")
print("4.TO GET THE DETAILE OF EVERY CUSTOMER")
print("5.TO GET DETAILS OF A PARTICULAR CUSTOMER")
print("6.TOINSERT MULTIPLE VALUES")
print("7.enter 0 to log out")
choice=int(input("enter your choice as per the above information:"))

if choice==1:
v_customer=input("enter the name customer ")
v_accno=input("enter your account number:")
import datetime
v_date=datetime.datetime.now()
v_add=input("enter your complete address:")
v_debit=input("enter your debit card number:")
v_credit=int(input("enter your credit amount:"))
mycursor.execute("insert into gasin values('{}' , {} , '{}' , '{}' , {} ,
{} )".format(v_customer , v_accno , dt.date.today() , v_add , v_debit , v_credit ))
print ("äccount is created")

continue
elif choice==2:
mycursor.execute("select * from gasin")
re=mycursor.fetchall()
print("YOUR RESULT IS ")

for x in re:
print(x)
continue
elif choice == 3:
customer_name=input("ENTER THE NAME OF CUSTOMER:")
import datetime
import random
v_date=datetime.datetime.now()

15
date = v_date
print("the date & time is:",v_date)
print("CHOOSE A CHOICE FROM THE FOLLOWING AS PER THE GAS IS
BOUGHT BY THE CUSTOMER:")
print("1. C N G ......Rs.75/l")
print("2.L P G .......Rs.80/l")
print(" 3.both LPG.....Rs.75/l & CNG.... Rs.80/l")
ch=int(input("enter your choice:"))

if ch==1:
cng=int(input("enter the quantity bought:"))
amount= 75*cng
print("THE AMOUNT TO BE PAID IS :",amount)
mycursor.execute("update gasin set v_cng='cng',v_amtobe_paid='amont',where
customer ='customer_name'")
cho=int(input("if transaction is to be done through the credit amount enter 1:"))
if cho==1:
remaining=v_credit-amount
mycursor.execute ("updata gasin set v_credit=('remaining'),v_date=('date')
where v_customer='customer_name'")
print("your record is updated")
else:
print("INVALID CODE")

if ch==2:
lpg=int(input("enter the amount bought by the customer:"))
pay = 80*lpg
print("the amount to be is: ",pay)
mycursor.execute("update gasin set v_lpg='lpg',v_amtobe_paid='pay' where
v_customer='customer_name'")
print("your record is updated")
choo=int(input("if transaction is to be done through the credit amount enter 1:"))
if choo==1:
remain=v_credit-pay
mycursor.execute("update gasin set v_credit='remain',v_date='date'where
v_customer ='customer_name'")
print("your record is updated")

if ch==3:
lpgas=int(input("enter the amount:"))
cngas=int(input("enter the amount:"))
total=80*lpgas+75*cngas
print("the amount to be is: ",total)
mycursor.execute("update gasin set
v_lpg='lpgas',v_cng='cngas',v_amtobe_paid='total' where
v_customer='customer_name'")
print("your record is updated")
chio=int(input("if transaction is to be done through the credit amount enter 1:"))
if chio==1:
remaind=v_credit-total
mycursor.execute("update gasin set v_credit='remaind',v_date='date'where
v_customer ='customer_name'")

elif choice==4:

16
mycursor.execute("select * from gasin")
se = mycursor.fetchall()
for x in se:
print(x)
continue

elif choice==5:
customer_name=input("ENER yOUR NAME")
mycursor.execute("select v_credit , v_debit ,v_accno , v_add from gasin where
v_customer='customer_name'")
record=mycursor.fetchall()
for x in record:
print(x)
continue

elif choice==6:
v_customer=input("enter the name customer ")
v_accno=input("enter your acount number:")
import datetime
v_date=datetime.datetime.now()
date = v_date
v_add=input("enter your complete address:")
v_debit=input("enter your debit card number:")
v_credit=int(input("enter your credit amount:"))
mycursor.execute("insert into gasin values(v_customer,v_accno,'(date)',
'v_add',44453,1009900)")
print("inserted")
continue

elif choice==0:
break
conn.commit()

#******************************code finishes here ****************************

17
Enter Password of Your MySQL Client : pass
--------------------------------------------------------------------------------------------------------------
*********************** W E L C O M E **************************

CAR RENTAL MANAGEMENT SYSTEM

DEVELOPED BY:

Devansh Pathak

XII-E

Sacred Hearts Sr. Sec. Public School

Bareilly

connected

GAS INVENTORY MANAGEMENT SYSTEN

enter your password to continue: xyz

confirm your password: xyz

your password is correct

1.CREATE ACCOUNT

2.TO MAKE BILL

3.TO GET DETAILS OF THE CUSTOMER

4.TO GET THE DETAILE OF EVERY CUSTOMER

5.TO GET DETAILS OF A PARTICULAR CUSTOMER

6.TOINSERT MULTIPLE VALUES

7.enter 0 to log out

enter your choice as per the above information:1

enter the name customer devansh

enter your account number:123123

enter your complete address:bareilly

enter your debit card number:123456789 18

enter your credit amount:4500


äccount is created

1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information:2
YOUR RESULT IS
(‘devansh’, 123123, datetime.date(2023, 12, 7), 'bareilly', None, None, 123456789,
None, 4500)

1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information: 3

ENTER THE NAME OF CUSTOMER:devansh


the date & time is: 2023-12-7 10:36:12.632109
CHOOSE A CHOICE FROM THE FOLLOWING AS PER THE GAS IS BOUGHT
BY THE CUSTOMER:
1. C N G ......Rs.75/l
2.L P G .......Rs.80/l
3.both LPG.....Rs.75/l & CNG.... Rs.80/l
enter your choice:2
enter the amount bought by the customer:1
the amount to be is: 80
your record is updated
if transaction is to be done through the credit amount enter 1:1
your record is updated

1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information:4
('devansh', 123123, datetime.date(2023, 12, 7), 'bareilly', 1, None, 123456789, 80, 4500)
('riya', 1213, datetime.date(2023, 12, 7), 'rampur', None, None, 132131345, None, 2420)

19
1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information:5
ENER YOUR NAME devansh
('devansh', 123123, datetime.date(2023, 12, 7), 'bareilly', 1, None, 123456789, None,
4500)

1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information:6
enter the name customer ajay
enter your acount number:1213121
enter your complete address:rampur
enter your debit card number:7512384
enter your credit amount:2400
inserted

1.CREATE ACCOUNT
2.TO MAKE BILL
3.TO GET DETAILS OF THE CUSTOMER
4.TO GET THE DETAILE OF EVERY CUSTOMER
5.TO GET DETAILS OF A PARTICULAR CUSTOMER
6.TOINSERT MULTIPLE VALUES
7.enter 0 to log out
enter your choice as per the above information:0

>>>

20
21
Bibliography

Books Referred

 Dive into Python

 Python Developer's Handbook

 Python 2.1 Bible

Web Sites Referred

 www.google.com

 www.studytonight.com

 www.pythonprogramming.com

22

You might also like