THIS PROJECT IS FOR THE 12TH STANDARD STUDENTS WHICH ARE FACING PROBLEM IN MAKING COMPUTER SCIENCE PROJECTS LIKE RAILWAY RESERVATION SYSTEM FOR REPORT FILE FOR THE 12TH BOARDS . IN THIS PROJECT IS BASED ON PYTHON PROGRAMMING . THE DATABASE WE HAVE USED IN THIS MYSQL AND CONNECT IT TO PYTHON THROUGH MYSQL CONNECTIVITY.
class 12th computer science project Employee Management System In PythonAbhishekKumarMorla
This is the employment management system designed in python without using any interface through sql it does not have sequence structured query or sql connectivity but perhaps it has file handling concept.
How To Use It:
just replace the txt file and location on the code
also always use the id of employment as shown below:
01
because in the code it search for the index 0,1 therefore it have only two digits employee names
you can make it to 3 or 4 just by replacing the code
we have already mentioned in the code part..
This project is based on Library Management. Python and MySQL are the programming platforms which are used in making of this project.
Subject-Informatics Practices
Class-11/12
Python Project book shop system.This project BOOKSHOP SYSTEM includes some facilities for the retail book shop to maintain records of the books and also search, display, modification, delete etc the books available. This software searches the books data which is store in the record.
class 12th computer science project Employee Management System In PythonAbhishekKumarMorla
This is the employment management system designed in python without using any interface through sql it does not have sequence structured query or sql connectivity but perhaps it has file handling concept.
How To Use It:
just replace the txt file and location on the code
also always use the id of employment as shown below:
01
because in the code it search for the index 0,1 therefore it have only two digits employee names
you can make it to 3 or 4 just by replacing the code
we have already mentioned in the code part..
This project is based on Library Management. Python and MySQL are the programming platforms which are used in making of this project.
Subject-Informatics Practices
Class-11/12
Python Project book shop system.This project BOOKSHOP SYSTEM includes some facilities for the retail book shop to maintain records of the books and also search, display, modification, delete etc the books available. This software searches the books data which is store in the record.
TOPIC:-
SCIENTIFIC CALCULATOR
PURPOSE:-
To create scientific calculator class to perform the task related to scientific calculations. Which include finding square or cube etc.
The scientific calculator perform following task:-
1. Determine the square of the number.
2. Determine the square root of the number
3. Determine the first number power of the second number
4. Determine the factorial of a number
5. Determine the sin, cos and tan value of the number.
6. Determine the logarithm, natural logarithm and exponential of the number.
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...ArkaSarkar23
This is a final project based on Programming Language Python.
It contains the whole computer science project for the exam AISSCE. It contains the code for Result analysis (GUI based) software. It contains modules like tkinter, os, openpyxl,numpy etc. This program will help to generate the analyzed redult for any class.
Computer science class 12 project on Super Market BillingHarsh Kumar
Certificate
--Declaration
--Acknowledgement
--Hardware and software requirements
--Classes and function used
--Header files used
--Files generated
--Working description
--Coding
--Output screen
--Bibliography
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM),CBSE Class 12 computer project,Class XII computer project, A project work on Hotel management system in C++,Class 12 C++ Projects, Projects in C++ for Class XII CBSE, C++ Class XII project
Library Management Project (computer science) class 12RithuJ
This project descibes the Library management system.This includes the code, its output and the applications. This software has main menu, admin menu that has provision to create student & book record, display student & book record, modify student & book record, delete student & book record .
Rithu
AECS Kudankulam
Download link ( copy link to download )
https://drive.google.com/file/d/1TOz6arCdt4Nhfm_2emBzQCmgGSTCVQHy/view?usp=sharing
to add this to net beans just do this
1) open netbeans
2) on the top left, click file.
3) then click import project, there select from zip
4) use my file which u downloaded
5) import and thats it
Enjoy Using my Project as a reference for your own Project.
I hope that this will help you to understand what to do in your own project.
Happy Coding Nerds!!
git hub link to download it to ur system
https://github.com/Yosh1kageK1ra/12th-Class-Project-CBSE.git
This project contains topic "Effect of sodium carbonate on foaming capacity of Soap" with several observations to help class XII students for their projects.
CBSE Investigatory Project For Class 11 Of Chemistry Subject.
Topic- To Study The Forming Capacity Of The Various Samples Of Soap.
.
Disclaimer- The Direct Downloading Of The File and Printing Without any Changes Is Violation Of the Copyright Issues Published On This File. Kindly Use It For Informative Purposes Only.
Thank You
You Can Also Download Complete File Via link-
https://drive.google.com/file/d/1xiJ4OeGgvMzd7kUjSxM2SZuTv2eBPUTS/view?usp=sharing
TOPIC:-
SCIENTIFIC CALCULATOR
PURPOSE:-
To create scientific calculator class to perform the task related to scientific calculations. Which include finding square or cube etc.
The scientific calculator perform following task:-
1. Determine the square of the number.
2. Determine the square root of the number
3. Determine the first number power of the second number
4. Determine the factorial of a number
5. Determine the sin, cos and tan value of the number.
6. Determine the logarithm, natural logarithm and exponential of the number.
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...ArkaSarkar23
This is a final project based on Programming Language Python.
It contains the whole computer science project for the exam AISSCE. It contains the code for Result analysis (GUI based) software. It contains modules like tkinter, os, openpyxl,numpy etc. This program will help to generate the analyzed redult for any class.
Computer science class 12 project on Super Market BillingHarsh Kumar
Certificate
--Declaration
--Acknowledgement
--Hardware and software requirements
--Classes and function used
--Header files used
--Files generated
--Working description
--Coding
--Output screen
--Bibliography
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM),CBSE Class 12 computer project,Class XII computer project, A project work on Hotel management system in C++,Class 12 C++ Projects, Projects in C++ for Class XII CBSE, C++ Class XII project
Library Management Project (computer science) class 12RithuJ
This project descibes the Library management system.This includes the code, its output and the applications. This software has main menu, admin menu that has provision to create student & book record, display student & book record, modify student & book record, delete student & book record .
Rithu
AECS Kudankulam
Download link ( copy link to download )
https://drive.google.com/file/d/1TOz6arCdt4Nhfm_2emBzQCmgGSTCVQHy/view?usp=sharing
to add this to net beans just do this
1) open netbeans
2) on the top left, click file.
3) then click import project, there select from zip
4) use my file which u downloaded
5) import and thats it
Enjoy Using my Project as a reference for your own Project.
I hope that this will help you to understand what to do in your own project.
Happy Coding Nerds!!
git hub link to download it to ur system
https://github.com/Yosh1kageK1ra/12th-Class-Project-CBSE.git
This project contains topic "Effect of sodium carbonate on foaming capacity of Soap" with several observations to help class XII students for their projects.
CBSE Investigatory Project For Class 11 Of Chemistry Subject.
Topic- To Study The Forming Capacity Of The Various Samples Of Soap.
.
Disclaimer- The Direct Downloading Of The File and Printing Without any Changes Is Violation Of the Copyright Issues Published On This File. Kindly Use It For Informative Purposes Only.
Thank You
You Can Also Download Complete File Via link-
https://drive.google.com/file/d/1xiJ4OeGgvMzd7kUjSxM2SZuTv2eBPUTS/view?usp=sharing
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSEDuvanRamosGarzon1
AIRCRAFT GENERAL
The Single Aisle is the most advanced family aircraft in service today, with fly-by-wire flight controls.
The A318, A319, A320 and A321 are twin-engine subsonic medium range aircraft.
The family offers a choice of engines
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
1. ASSISI CONVENT SCHOOL
Agra Road, Etah (UP) Pin 207001
PROJECT REPORT
On
RAILWAY RESERVATION
SYSTEM
ACADEMIC SESSION
2022-2023
SUBJECT
COMPUTER SCIENCE (083)
Prepared By :
1.AKSHAT TIWARI
2.KUSHAGRA DUBEY
3.ARYAN SINGH TOMAR
4.AMAN PRATAP
ASSISI CONVENT SCHOOL
2. Agra Road, Etah(UP) Pin 207001
CERTIFICATE
This is to certify that AKSHAT TIWARI of
Class XII, has completed his project entitled
“RAILWAY RESERVATION SYSTEM” under my
supervision for the subject “COMPUTER
SCIENCE(083) ” for All India Secondary School
Examination 2022-2023.
He has taken proper care and shown utmost
sincerity in the completion of this project. I certify that
this project is up to my expectation and as per the
guidelines issued by CBSE.
RAHUL JOHRI ANJALI MARIA
H.O.D (Computer Science) Principal
Assisi Convent School Assisi Convent School
Etah Etah
ACKNOWLEDGEMENT
3. Firstly, I would like to express my special thanks of
gratitude to my principal REV. SR. ANJALI MARIA,
who gave me this opportunity to work on this project.
I would like to thank her for the completion of this
project.
Secondly, I would like to thank my subject teacher
MR. RAHUL JOHRI who continuously guided me and
helped me from time to time during the development
of this project.
At last, I would like to thank my friends and family
members for their valuable support.
AKSHAT TIWARI
TABLE OF CONTENTS
4. SN PARTICULARS PAGE
NO.
TEACHER’S
SIGNATURE
1 INTRODUCTION OF
THE PROJECT 1
2 REQUIREMENTS
2-3
3 PROGRAMMING
LANGUAGE &
CONCEPTS USED
4
4 PACKAGES,
MODULES AND
FUNCTIONS USED
5-7
5 DATABASE & TABLES
USED 8-11
6 SCOPE OF THE
PROJECT 12-13
7 PROJECT CODE
14-30
8 SCREENSHOTS OF
THE OUTPUT 31-34
5. INTRODUCTION TO THE
PROJECT
The topic of the project is RAILWAY RESERVATION
SYSTEM .The railway reservation system facilitates
the passengers to enquiry about the trains available
on the basis of source and destination, booking and
cancellation of tickets, enquiry about the status of the
booked ticket, etc. The aim of case study is to design
and develop a data base maintaining records of
different trains, train status and passengers.This
project contains introduction to the railways
reservation system. It is the computerized system of
reserving the seats of train seats in advance. It is
mainly used for a long route. Online reservation has
made the process for the reservation of seats very
much easier than ever before.
6. REQUIREMENTS
HARDWARE REQUIREMENTS :-
• The hardware requirements are laptop of RAM-
4.00 GB32-bit operating system
• printer
SOFTWARE REQUIREMENTS:
• A window based operating system with DOS
support
• The system must be connected with a LAN
connection
PROCESSOR REQUIREMENTS:
• Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz 2.60
GHz
MEMORY REQUIREMENTS:
• Hard disk of about 152GB
OTHER REQUIREMENTS:
• MySql version 5.7
• Python version 3.10.5
8. PROGRAMING LANGUAGE
AND CONCEPTS USED
The programming language of the project is PYTHON
The concepts that we have used in our project are ---
we have taken the use of MySql connectivity for this
project , we had made a database in Sql with the help
of python programming and perform every task in Sql
by python programming only. We made various types
of user defined functions for the function of each and
every functioning in the program. We made the use of
if , elif and else approx in every function for the
conditional statements . we have also imported
tabulate and random module , tabulate module for
displaying the data from the database in a tabular
form and random module for generating random no.
from randint() method for generating a random pnr_no
for the tickets.
PACKAGES, MODULES &
9. FUNCTIONS USED
PACKAGE
NAME
MODULE
NAME
FUNTION
S
DESCRIPTION
Nil
random
randint()
Used to
generate a
Pnr number in
a given range
mysql.
connector
connect()
To make a
connection
between mysql
and python
cursor()
It provides a
cursor object
for the working
of the database
through
menu()
It regulates
activities like
signup, signin
in the project
main()
It regulates all
the activities
like ticket
booking,
checking
,cancelling and
10. User
defined
functions
also show the
account details
of the user
ticket_boo
king()
This function is
for the booking
of the ticket for
train
delhi()
This function is
for the fare of
the train delhi
express
sabarmati
()
This function is
for the fare of
the train
sabarmati
express
goa() This function is
for the fare of
the train goa
express
User
Defined
functions
chennai() This function is
for the fare of
the train
chennai
express
ticket_che
cking()
This function is
for the checking
for the booked
tickets
ticket_can
celling()
This function is
for the
cancellation of
the booked
tickets
11. DATABASE & TABLES
USED
tabulate
checking_
2()
This function is
for the deletion
of existing user
account
checking_
1()
This function is
for creating a
new account in
the project
checking() This function is
used for logging
in of an existing
account in
project
checking_
3()
This function is
for checking
our personal
account details
tabulate()
Used for
displaying the
data in a
tabular format
12. The Database used in this project is
RAILWAY104
TABLE
NAME
FIELD
NAME
DATA TYPE DESCRIPTION
User_
accounts
fname varchar(100) Stores the first
name of the
user
lname varchar(100) Stores the last
name of the
user
user_
name
varchar(100) Stores the
username of
the user
password Varchar(100) Stores the
password for
the account of
the user
phno Varchar(15) Stores the
phone no. of
the user
gender Varchar(50) Stores the
gender of the
user
dob Varchar(50) Stores the date
of birth of the
user
age Varchar(4) Stores the age
of the user
13. TABLE
NAME
FILED
NAME
DATA TYPE DESCRIPTION
Train_
details
TRAIN_
NAME
Varchar(30) Stores the
train name
given by the
user
TRAIN_NO Varchar(20) Stores the
train no given
by the user
Source Varchar(30) Stores the
starting point
or location of
the train
Destination Varchar(30) Stores the
destination of
the train
AC1 Varchar(20) Stores the AC1
fare of the
ticket
AC2 Varchar(20) Stores the AC2
fare of the
AC3
Varchar(20)
Stores the AC3
fare of the
ticket
Sleeper Varchar(10) Stores the
sleeper fare of
ticket
14. TABLE
NAME
FILED
NAME
DATA
TYPE
DESCRIPTION
Railway
PNR_NO Varchar(10) Stores the
generated pnr
no.
pname Varchar(30) Stores the
passenger
name
Age Int(11) Store the age of
the passenger
Train_no Varchar(10) Store the train
no of that train
with which the
passenger is
travelling
Train_name Varchar(30) Store the train
name of that
train with
which the
passenger is
travelling
gender Varchar(10) Stores the
gender of the
passemger
15. SCOPE OF THE PROJECT
Class Varchar(10) Stores the
class of the
train
source Varchar(20) Stores the
starting point
of the train
Destination Varchar(30) Stores the
destination of
the train
fare int(11) Stores the fare
of the train of
the pasengers
16. The scope of the project railway reservation system is
we can perfrom a various types of activities through
this project. When you run the code the most starting
you will get to see is there will be four options 1. SIGN
IN 2. SIGN UP 3. DELETE ACCOUNT 4. EXIT first
you should sign up for new user account , when you
made it just select the 1st option and sign in with the
same account you made above . now you will get to see
4 options again 1.TICKET BOOKING, 2.TICKET
CHECKING, 3. TICKET CANCELLING AND ACCOUNT
DETAILS you have to choose the first option first and
by following the steps you can book a ticket , for
booking you have 4 trains available in this project that
will also be shown to you at the time of booking . so
just select the type of seat and book the train.
After booking the train you can choose 2nd option that
is TICKET CHECKING , while booking of the train you
will have gotten a PNR Number so now while checking
just insert your generated PNR number and you will
get to know the no of tickets you have booked with
that PNR no. In this project we have only given a limit
of 2 tickets with one PNR number at a time
Now just select the 3rd option that is TICKET
CANCELLING here also you will be asked by the same
17. PNR no generated at that time . just type the no and
your all tickets will be cancelled
Our last option is account details ,here you get all the
details about the account you made at first .
You can log out your account with this project and
also can delete the existing account that you have
made
That’s all this project can perform for the users
PROJECT CODE
TABLES CODE:-
19. s="insert into train_details values('sabarmati
express','2365','agra','gujarat',9000,'8000','7000','5000')"
c.execute(s)
db.commit()
MAIN CODE:-
import random
import mysql.connector
mycon=mysql.connector.connect(host='localhost',user='root',p
asswd='akshat@123',database='railway104')
cursor=mycon.cursor()
mycon.autocommit=True
from tabulate import tabulate
def menu():
ch=1
while ch==1:
print('tt-------WELECOME TO ONLINE RAILWAY
RESERVATION SYSTEM-------tt')
print('1.SIGN IN')
print('2.SIGN UP')
print('3.DELETE ACCOUNT')
print('4.EXIT')
ch1=int(input('ENTER YOUR CHOICE:'))
if ch1==1:
a=checking()
if a==True:
print('WELCOME')
main()
20. else:
continue
elif ch1==2:
a=checking_1()
if a==True:
main()
else:
print('PASSWORD ALREADY EXISTS')
continue
elif ch1==3:
c=checking_2()
if c==True:
print('ACCOUNT DELETED')
continue
else:
print('YOUR PASSWAORD OR USER_NAME IS
INCORRECT')
continue
elif ch1==4:
print('THANK YOU')
break
else:
print('ERROR 404:PAGE NOT FOUND')
break
21. print('1.YES')
print('2.NO')
ch=int(input('DO YOU WANT TO CONTINUE OR NOT:'))
def main():
print('1.YES')
print('2.NO')
c=int(input("DO YOU WANT TO CONTINUE OR NOT:"))
while (c==1):
print(' 1.TICKET BOOKING',"n", '2.TICKET
CHECKING',"n",'3.TICKET CANCELLING',"n",'4.ACCOUNT
DETAILS',"n",'5.LOG OUT')
ch=int(input('enter ur choice:'))
if ch==1:
ticket_booking()
elif ch==2:
ticket_checking()
elif ch==3:
ticket_cancelling()
elif ch==4:
checking_3()
elif ch==5:
print('THANK YOU')
break
else:
print('WRONG INPUT')
22. else:
print('ERROR 404: ERROR PAGE NOT FOUND')
def ticket_booking():
mycon.autocommit=True
print("******AVAILABLE TRAINS******")
g="select*from train_details"
cursor.execute(g)
data=cursor.fetchall()
Data=list(data)
a=['TRAIN_NAME','TRAIN_NO','SOURCE','DESTINATION','AC1'
,'AC2','AC3','SLEEPER']
print(tabulate(data,headers=a,tablefmt="psql"))
print("2365.DELHI EXPRESS")
print("3425.GOA EXPRESS")
print("1267.CHENNAI EXPRESS")
print("2564.SABARMATI EXPRESS")
x=input("ENTER THE TRAIN NO. FOR MORE TICKET
OPTIONS:")
n=int(input("HOW MANY TICKETS YOU WANTn(YOU CAN
BOOK ONLY 2 TICKETS):"))
if n<=2:
if x=='2365':
g=delhi()
23. h="JAIPUR"
c1="DELHI"
c2="DELHI EXPRESS"
elif x=='3425':
g=goa()
h="GOA"
c1="AGRA"
c2="GOA EXPRESS"
elif x=='1267':
g=chennai()
h="CHENNAI"
c1="DELHI"
c2="CHENNAI EXPRESS"
elif x=='2564':
g=sabarmati()
h="GUJARAT"
c1="AGRA"
c2="SABARMATI EXPRESS"
else:
print("INVALID OPTION")
pnrno=random.randint(1000,3000)
for i in range (n):
b=input("ENTER THE PERSON'S NAME:")
c=input("ENTER THE AGE:")
print(' M=MALE','n','F=FEMALE','n','N=NOT TO
MENTION')
v={'m':'MALE','f':'FEMALE','n':'NOT TO MENTION'}
24. s=input("ENTER THE GENDER:")
s2="insert into railway
values('{}','{}',{},'{}','{}','{}','{}','{}','{}','{}')".format(pnrno,b,c,x,c2,s,g[1]
,c1,h,g[0])
cursor.execute(s2)
print('BOOKED SUCCESSFULLY')
print("YOUR PNR NO. GENERATED IS :",pnrno)
else:
print("MORE THAN 2 TICKETS ARE NOT ALLOWED")
def delhi():
x=input("ENTER YOUR CHOICE OF
TICKET(AC1/AC2/AC3/SLEEPER):")
if(x=='ac1'):
print ("YOU HAVE Chosen FIRST CLASS AC TICKET")
s=6000
elif (x=='ac2'):
print ("YOU HAVE Chosen SECOND CLASS AC TICKET")
s=5000
elif (x=='ac3'):
print ("YOU HAVE Chosen THIRD CLASS AC TICKET")
s=4000
elif (x=='sleeper'):
25. print ("YOU HAVE Chosen SLEEPER TICKET")
s=3000
else:
print("Invalid option")
print("YOUR TICKET PRICE FOR EACH IS ",s,"n")
return s,x
def sabarmati():
x=input("ENTER YOUR CHOICE OF
TICKET(AC1/AC2/AC3/SLEEPER):")
if(x=='ac1'):
print ("YOU HAVE Chosen FIRST CLASS AC TICKET")
s=9000
elif (x=='ac2'):
print ("YOU HAVE Chosen SECOND CLASS AC TICKET")
s=8000
elif (x=='ac3'):
print ("YOU HAVE Chosen THIRD CLASS AC TICKET")
s=7000
elif (x=='sleeper'):
print ("YOU HAVE Chosen SLEEPER TICKET")
s=5000
else:
print("Invalid option")
print("YOUR TOTAL TICKET PRICE FOR EACH IS ",s,"n")
26. return s,x
def goa():
x=input("ENTER YOUR CHOICE OF
TICKET(AC1/AC2/AC3/SLEEPER):")
if(x=='ac1'):
print ("YOU HAVE Chosen FIRST CLASS AC TICKET")
s=10000
elif (x=='ac2'):
print ("YOU HAVE Chosen SECOND CLASS AC TICKET")
s=9000
elif (x=='ac3'):
print ("YOU HAVE Chosen THIRD CLASS AC TICKET")
s=8000
elif (x=='sleeper'):
print ("YOU HAVE Chosen SLEEPER TICKET")
s=7000
else:
print("Invalid option")
print("YOUR TOTAL TICKET PRICE FOR EACH IS ",s,"n")
return s,x
def chennai():
x=input("ENTER YOUR CHOICE OF
TICKET(AC1/AC2/AC3/SLEEPER):")
27. if(x=='ac1'):
print ("YOU HAVE Chosen FIRST CLASS AC TICKET")
s=12000
elif (x=='ac2'):
print ("YOU HAVE Chosen SECOND CLASS AC TICKET")
s=10000
elif (x=='ac3'):
print ("YOU HAVE Chosen THIRD CLASS AC TICKET")
s=9000
elif (x=='sleeper'):
print ("YOU HAVE Chosen SLEEPER TICKET")
s=7000
else:
print("Invalid option")
print("YOUR TOTAL TICKET PRICE FOR EACH IS ",s,"n")
return s,x
def ticket_checking():
print('1.yes')
print('2.no')
ch=int(input("WANT TO CHECK A TICKET:"))
if ch==1:
pnrno=int(input('ENTER YOUR GENERATED PNR NO.:'))
try:
28. s1="select * from railway where
pnr_no='{}'".format(pnrno)
cursor.execute(s1)
data=cursor.fetchall()
Data=list(data)
a=['PNRNO','P.NAME','AGE','TRAIN NO.','TRAIN
NAME','GENDER','CLASS','SOURCE','DESTINATION','FARE']
print(tabulate(data,headers=a,tablefmt="psql"))
except:
print('TICKET DOES NOT EXISTS')
elif ch==2:
print('THANK YOU')
else:
print('ERROR 404:PAGE NOT FOUND')
def ticket_cancelling():
print('1.yes')
print('2.no')
ch=int(input("WANT TO CANCEL A TICKET:"))
if ch==1:
pnrno=input('ENTER THE PNR NO:')
s1="delete from railway where pnr_no='{}'".format(pnrno)
cursor.execute(s1)
print('TICKET CANCELLED')
elif ch==2:
print('THANK YOU')
else:
print('ERROR 404:PAGE NOT FOUND')
29. def checking_2():
a=input('USER NAME:')
b=input('PASS WORD:')
try:
s1="select user_name from user_accounts where
password='{}'".format(b)
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)
if data[0]==a:
print('IS THIS YOUR ACCOUNT')
s1="select user_name from user_accounts where
password='{}'".format(b)
c1="select fname,lname from user_accounts where
password='{}'".format(b)
cursor.execute(c1)
data1=cursor.fetchall()[0]
data1=list(data1)
data1=data1[0]+' '+data1[1]
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)
if data[0]==a:
x=['FIRST NAME','LAST NAME','PHONE
NUMBER','GENDER','DATE OF BIRTH','AGE']
s1="select fname,lname,phno,gender,dob,age from
user_accounts where password='{}'".format(b)
cursor.execute(s1)
30. data=cursor.fetchall()[0]
data=list(data)
for i in range(0,6):
print(x[i],':::',data[i])
print('1.yes')
print('2.no')
vi=int(input('enter your choice:'))
if vi==1:
b1="delete from user_accounts where password
= '{}'".format(b)
cursor.execute(b1)
return True
elif vi==2:
print('SORRY,RETRY')
else:
print('ERROR 404:PAGE NOT FOUND')
else:
return False
except:
print('ACCOUNT DOES NOT EXIST')
def checking_1():
f=input("FIRST NAMEtt:")
l=input("LAST NAME tt:")
n=f+" "+l
a=input('USER NAME tt:')
b=input('PASS WORD tt:')
31. c=input('RE-ENTER YOUR PASS WORD :')
ph=input("PHONE NUMBERtt:")
print(' M=MALE','n','F=FEMALE','n','N=NOT TO
MENTION')
gen=input('ENTER YOUR GENDERt:')
print("ENTER YOR DATE OF BIRTH")
d=input("Date(DD) :")
o=input("Month(MM) :")
p=input("Year(YYYY) :")
dob=d+'/'+o+'/'+p
age=input('YOUR AGE tt:')
v={'m':'MALE','f':'FEMALE','n':'NOT TO MENTION'}
if b==c:
try:
c1="insert into user_accounts
values('{}','{}','{}','{}','{}','{}','{}','{}')".format(f,l,a,b,ph,v[gen],dob,age)
cursor.execute(c1)
print('WELCOME',f,' ',l)
return True
except:
print('PASSWORD ALREADY EXISTS')
return False
else:
print('BOTH PASSWORDS ARE NOT MATCHING')
def checking():
a=input('USER NAME:')
b=input('PASS WORD:')
32. try:
s1="select user_name from user_accounts where
password='{}'".format(b)
c1="select fname,lname from user_accounts where
password='{}'".format(b)
cursor.execute(c1)
data1=cursor.fetchall()[0]
data1=list(data1)
data1=data1[0]+' '+data1[1]
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)[0]
if data==a:
print(' HII ',data1)
return True
else:
return False
except:
print('ACCOUNT DOES NOT EXIST')
def checking_3():
a=input('USER NAME:')
b=input('PASS WORD:')
try:
33. s1="select user_name from user_accounts where
password='{}'".format(b)
c1="select fname,lname from user_accounts where
password='{}'".format(b)
cursor.execute(c1)
data1=cursor.fetchall()[0]
data1=list(data1)
data1=data1[0]+' '+data1[1]
cursor.execute(s1)
data=cursor.fetchall()[0]
data=list(data)
if data[0]==a:
x=['FIRST NAME','LAST NAME','PHONE
NUMBER','GENDER','DATE OF BIRTH','AGE']
s1="select fname,lname,phno,gender,dob,age from
user_accounts where password='{}'".format(b)
cursor.execute(s1)
data=cursor.fetchall()
data=list(data)
print(tabulate(data,headers=x,tablefmt="psql"))
else:
return False
except:
print('ACCOUNT DOES NOT EXIST')
menu()