0% found this document useful (0 votes)
192 views26 pages

Computer Science Investigatory Project Class 12

i love this project

Uploaded by

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

Computer Science Investigatory Project Class 12

i love this project

Uploaded by

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

12/5/2018 Computer Science Investigatory Project Class 12

SlideShare Explore Search You

Upload
Login
Signup

Search Submit Search

Home
Explore

Presentation Courses
PowerPoint Courses

by LinkedIn Learning

Search
Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 1/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 2/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 3/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 4/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 5/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 6/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 7/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 8/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 9/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 10/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 11/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 12/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 13/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 14/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 15/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 16/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 17/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 18/26
12/5/2018 Computer Science Investigatory Project Class 12

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 19/26
12/5/2018 Computer Science Investigatory Project Class 12

Upcoming SlideShare

Loading in …5
×
20 of 20

Computer Science Investigatory Project Class 12


245,492 views

Share
Like
...

Self-employed
Follow

Published on Mar 16, 2014

Published in: Education

34 Comments
379 Likes
Statistics
Notes

Full Name
Comment goes here.
12 hours ago Delete Reply Block

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 20/26
12/5/2018 Computer Science Investigatory Project Class 12
Are you sure you want to Yes No
Your message goes here

Share your thoughts…


Post

Abhimanyu Singh , Architect at Aedas


Sorry Bruh, can't download this shit
1 month ago Reply
Are you sure you want to Yes No
Your message goes here

RahulChoudhary286
download kahan se karu
3 months ago Reply
Are you sure you want to Yes No
Your message goes here

parul verma , Student at Kendriya Vidyalaya


WHERE IS DOWNLOAD OPTION
10 months ago Reply
Are you sure you want to Yes No
Your message goes here

pankaj kumar maurya , Student at Kendriya Vidyalaya no 2 delhi cantt


how to download
10 months ago Reply
Are you sure you want to Yes No
Your message goes here

tanu rawat , Student at Kendriya Vidyalaya


how to download//
10 months ago Reply
Are you sure you want to Yes No
Your message goes here

Show More

PrakashJoshi106
1 day ago

amanvermarocksstone
5 days ago

Pravin Yadav
5 days ago

DhruvKulshreshtha2
6 days ago

MohitPatel148
1 week ago

Show More
No Downloads
Views
Total views
245,492
On SlideShare
0
From Embeds
0
Number of Embeds

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 21/26
12/5/2018 Computer Science Investigatory Project Class 12
294
Actions
Shares
0
Downloads
8,231
Comments
34
Likes
379
Embeds 0
No embeds
No notes for slide

Computer Science Investigatory Project Class 12


1. 1. A Project Report On Railway Ticket Reservation Submitted By RAHUL KUSHWAHA Class : XII A Under the Guidance of Mr. Anil Kumar PGT
(Computer Science) Department of Computer Science Kendriya Vidyalaya No. 2, Nausenabaugh Visakhapatnam.
2. 2. C E R T I F I C A T E This is to certify that RAHUL KUSHWAHA Of Class XII A has prepared the report on the Project entitled “Railway Ticket
Reservation”. The report is the result of his efforts & endeavors. The report is found worthy of acceptance as final project report for the subject Computer
Science of Class XII. He has prepared the report under my guidance. (Mr. Anil Kumar) PGT (Computer Science) Department of Computer Science Kendriya
Vidyalaya No.2, Nausenabaugh, Visakhapatnam. Department of Computer Science Kendriya Vidyalaya No. 2, Nausenabaugh Visakhapatnam
3. 3. C E R T I F I C A T E The project report entitled “Railway Ticket Reservation”, Submitted by RAHUL KUSHWAHA of Class XII A for the CBSE Senior
Secondary Examination class XII of Computer Science at Kendriya Vidyalaya No. 2, Nausenabaugh Visakhapatnam has been examined. SIGNATURE OF
EXAMINER Department of Computer Science Kendriya Vidyalaya No. 2, Nausenabaugh Visakhapatnam
4. 4. D E C L A R A T I O N I hereby declare that the project work entitled “Railway Ticket Reservation”, submitted to Department of Computer Science,
Kendriya Vidyalaya No. 2, Nausenabaugh, Visakhapatnam is prepared by me. All the coding are result of my personal efforts. RAHUL KUSHWAHA Class
XII A
5. 5. A C K N O W L E D G E M E N T I would like to express a deep sense of thanks & gratitude to my project guide Mr. Anil Kumar Sir for guiding me
immensely through the course of the project. He always evinced keen interest in my work. His constructive advice & constant motivation have been
responsible for the successful completion of this project. My sincere thanks goes to Shri S.V. Babu, Our principal sir, for his co-ordination in extending every
possible support for the completion of this project. I also thanks to my parents for their motivation & support. I must thanks to my classmates for their timely
help & support for compilation of this project. Last but not the least, I would like to thank all those who had helped directly or indirectly towards the
completion of this project. RAHUL KUSHWAHA Class: XIIA
6. 6. CONTENTS 1. HEADER FILES USED. . . . . . . . . . . . . . . . . 2. FILES GENERATED. . . . . . . . . . . . . . . . . . . 3. WORKING DESCRIPTION. . . . . . . . . . . .
. 4. CODING. . . . . . . . . .. . . . . . . . . . . . . . . . . 5. OUTPUT SCREENS. . . . . . . . . . . . . . . . . . . 6. CONCLUSION. . . . . . . . . . . . . . . . . . . . . . . . . . 7.
BIBLIOGRAPHY. . . . . . . . . . . . . . . . . . . . . . . . .
7. 7. HEADER FILES USED 1.FSTREAM.H – for file handling, cin and cout 2. PROCESS.H – for exit() function 3. CONIO.H – for clrscr() and getch()
functions 4. STDIO.H – for standard I/O operations 5.STRING.H – for string handling 6.MATH.H–for doing mathematical operations
8. 8. FILES GENERATED DATA FILES TRAIN.DAT PROGRAM FILE RAILWAY TICKET RESERVATION.CPP OBJECT FILE TRAIN.OBJ EXECUTION
FILE TRAIN.EXE
9. 9. WORKING DESCRIPTION This program is designed to keep the friend’s record. This program consists of FIVE options as follows 1. TO ADD NEW
RAILWAY STATION 2. TO BOOK TICKET 3. TO CHANGE PER KM RATES 4. TO MODIFY DATABASE OF TRAIN 5. TO EXIT
10. 10. CODING //Indian Railways - Ticket Reservation //Submitted By RAHUL KUSHWAHA #include<fstream.h> #include<conio.h> #include<stdio.h>
#include<math.h> #include<string.h> #include<process.h> char from[30],to[30]; void detail() { cout<<"From"<<endl; gets(to); cout<<"To"<<endl;
gets(from); } class railways { char station[30]; unsigned int distance; float fare; public: void ad_data() { cout<<"Enter Railway Station name"<<endl;
gets(station); cout<<"enter its distance from Jammu Tawi"<<endl; cin>>distance; } void amount(int a,int b,int c)
11. 11. { cout<<"total distance="<<fabs((a-b))<<"ncharges per/km="<<c; fare=fabs((a-b))*c; cout<<"nticket cost ="<<fare; } unsigned int dist() { return distance;
} char* station_v() { return station ; } void modify() { cout<<"nEnter new railway stationn"; gets(station); cout<<"nenter its distance from jammu tawin";
cin>>distance; } }tr; void main() { clrscr(); unsigned int per_km=5,choice, d1=0,d2=0,i; char station_searched[30]; while(1) { clrscr();
cout<<"ntttWELCOME TO INDIAN RAILWAYSn"; for(i=0;i<80;i++) { cout<<"-";
12. 12. } cout<<"Enter your choice nt1:->Add new railway stationnt2:- >Book ticket"<<endl; cout<<"t3:->Change per km ratesnt4:->modify database of
trainnt5:->exitn"; for(i=0;i<80;i++) { cout<<"-"; } cin>>choice; while(choice==1) { ofstream of1("train.dat",ios::binary|ios::app); tr.ad_data();
of1.write((char*)&tr,sizeof(tr)); of1.close(); break; } while(choice==2) { ifstream of1("train.dat",ios::binary); detail(); while(of1) {
of1.read((char*)&tr,sizeof(tr)); if(0==stricmp(from,tr.station_v())) { d1=tr.dist(); }
13. 13. if(0==stricmp(to,tr.station_v())) { d2=tr.dist(); } if(d1 && d2) { tr.amount(d1,d2,per_km); getch(); break; } if(of1.eof()) { cout<<"nstations not found
check your spellingn"; getch(); } } of1.close(); break; } if(choice==3) { cout<<"Enter new per km rates"; cin>>per_km; } if(choice==4) { cout<<"enter the
railway station to be changed"; gets(station_searched); ifstream f1("train.dat",ios::binary); while(f1 )
14. 14. { f1.read((char*)&tr,sizeof(tr)); long pos=f1.tellg(); if(0==strcmp(station_searched,tr.station_v())) { f1.seekg((-1*sizeof(tr),ios::cur)); tr.modify();
f1.close(); ofstream f1("train.dat",ios::app); f1.seekp(pos,ios::beg); f1.write((char*)&tr,sizeof(tr)); cout<<"record modified"; f1.close(); break; } else
if(f1.eof()) { cout<<"nStation not foundn"; getch();
15. 15. } } } if(choice==5) { cout<<"nTHANK YOU FOR USING INDIAN RAILWAYS "; getch(); exit(0); }
if(choice!=1&&choice!=2&&choice!=3&&choice!=4&&choice!=5) { cout<<"entered wrong choice PROGRAM IS ABORTING!!!!!!"; getch(); exit(0); } }
getch(); }
16. 16. OUTPUT 1. WELCOME SCREEN 2. ADD NEW RAILWAY STATION
17. 17. 3. TO BOOK TICKET 4. TO CHANGE PER KM RATES
18. 18. 5. TO MODIFY DATABASE OF TRAIN
19. 19. 6. TO EXIT
20. 20. BIBLIOGRAPHY 1 http://www.google.com/ 2 http://en.wikipedia.org 3 Computer Science with C++ by Sumita Arora 4 Object Oriented Programming by
Robert Lafore 5 www.bOtskOOL.com

Recommended

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 22/26
12/5/2018 Computer Science Investigatory Project Class 12

College Prep: Writing a Strong Essay


Online Course - LinkedIn Learning

Teaching Techniques: Classroom Cloud Strategy


Online Course - LinkedIn Learning

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 23/26
12/5/2018 Computer Science Investigatory Project Class 12

PowerPoint: From Outline to Presentation


Online Course - LinkedIn Learning

Computer science project work


rahulchamp2345

C++ project on police station software


dharmenderlodhi021

12th CBSE Computer Science Project


Ashwin Francis

School Management (c++)


Nirdhishwar Nirdhi

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 24/26
12/5/2018 Computer Science Investigatory Project Class 12
c++ project on restaurant billing
Swakriti Rathore

Project report
meenalpandey

Hotel Management system in C++


Prince Kumar

English
Español
Português
Français
Deutsch

About
Dev & API
Blog
Terms
Privacy
Copyright
Support

LinkedIn Corporation © 2018

Share Clipboard

Facebook
Twitter
LinkedIn

Link

Public clipboards featuring this slide

No public clipboards found for this slide

Select another clipboard

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 25/26
12/5/2018 Computer Science Investigatory Project Class 12

Looks like you’ve clipped this slide to already.

Search for a clipboard

Create a clipboard

You just clipped your first slide!


Clipping is a handy way to collect important slides you want to go back to later. Now customize the name of a clipboard to store your clips.

Name* Best of Slides


Description Add a brief description so oth
Visibility
Others can see my Clipboard
Cancel Save
Save this document

https://www.slideshare.net/rahulkushwaha06/computer-science-investigatory-project-class-12 26/26

You might also like