C++ Project on Railway Ticket Reservation
Short Description
Class 12 computer science project...
Description
1/19/2015
C++ Project on Railway Ticket Reservation
Chemistry, C++, Physics, Maths, Biology, Social Science Home Biology C++ Chemistry IP Maths Physics Social Science Home > C++ > C++ Project on Railway Ticket Reservation Type text to search here...
C++ Project on Railway Ticket Reservation Railway Ticket Reservation C++ Project Work RAILWAY TICKET RESERVATION Name : Taher Shabbir Husain Class : XII – B School : Indian Public School Year : 20092010 Certified to be the bonafide work done by Mr. / Miss TAHER SHABBIR HUSSAIN of class XII – B in the COMPUTER LAB during the year 20092010 Date P.G.T. in COMPUTER SCIENCE INDIAN PUBLIC SCHOOL SalmiyaKuwait Submitted for ALL INDIA SENIOR SCHOOL CERTIFICATE PRACTICAL Examination held in COMPUTER LAB at INDIAN PUBLIC SCHOOL Salmiya , Kuwait. Examiner Date Seal I would like to express my sincere gratitude to computer science teacher Ms.„Latha.iVi.Sw.a.m, for her http://projects.icbse.com/cpp346
1/14
1/19/2015
C++ Project on Railway Ticket Reservation
vital support, guidance and encouragement – without which this project would not have come forth. I would also like to express my gratitude to the school for letting me use the school laboratory. S.No. Contents Page No. I. Objective 5 II. Introduction 6 III. 1 Summary 1 7 IV. Working 8 V. 1 Program Code 1 10 VI. Output 29 To develop a C++project to manage a railway ticket reservation service using object orientedprogramming anddata file handling. The C++programming language was developed at AT&T Bell laboratories in the early igSo’s by Biarne Stroustrup. He found out “C” lacking for simulating and decided to extend the language by adding features from his favourite language. SimtaSj was one of the earliest objectoriented languages. Biarne Stroustrup called it “C with classes” originally. The name C++ was coined by Rick Mascitti where”++”is the C increment operator. Ever since its birth, C++ evolved to cope with problems encountered by users, and through discussions at AT&T. The major reasons for its success is the support for object oriented programming, which is most near to real world situations. However, the maturation of the C++ language is attested by 2 recent events: • The formation of an ANSI (American National Standard Institute) C++ committee, and • The publication of the Annotated C++ Reference Manual by Ellis and Stroustrup. One can easily judge the importance of C++ as given the following lines: “Objectoriented technology is regarded as the ultimate paradigm for the modeling of the information in the data of logic. The C++ is now shown to fulfill this goal”. This is a project basedon train reservation. The program helps us to enter, display or alter the details of different trains. Moreover & most importantly the program helps us to reserve or cancel a train ticket. The program also helps us to know the present status of a reservedticket, i.e. whether the ticket is confirmedor not. It includes various function programs to do the above mentionedtasks. Data file handling has been effectively usedin the program. This program uses the concept of objectoriented programming and data file handling. The database is a collection of interrelated data to serve multiple applications. That is database programs create files of information. So we see that files are worked with most, inside the program. DBMS The software required for the management of data is called as DBMS. It has3 models • Relation model • Hierarchical model • Network model RELATIONAL MODELIt’s based on the concept on relation. Relation is the table that consists of rows and columns. The rows of the table are called tuple and the columns of the table are called attribute. Numbers of rows in the table is called as cardinality. Number of columns in the table is called as degree. HIERARCHICAL MODELIn this type of model, we have multiple records for each record. A particular recordhas one parent record. No chid record can exist without parent record. In this, the records are organized in tree (ike http://projects.icbse.com/cpp346
2/14
1/19/2015
C++ Project on Railway Ticket Reservation
structure NETWORK MODEL: In this, the data is representedby collection of records and relationship is represented by (ink or association. CHARACTERISTICS OF DB MS: – • It reduces the redundancy • Reduction of data in inconsistency • Data sharing • Data standardization DIFFERENT TYPES OF FILES: BASED ON ACCESS: • Sequentialfile • Serial file • Random (direct access) file BASED ON STORAGE: • Text file • Binary File
//PROGRAM ‐ TRAIN RESERVATION #indude #include #include #include #i class train { private : int trainno,nofafseat,nofasseat,noffsseat,nofacseat,nofssseat; char trainname[60],startingpoint[60],destinati train() { trainno=0; nofafseat=0; nofasseat=0; noffsseat=0; nofacseat=0; nofssseat=0; strcpy(trainname,"/0"); strcpy(startingpoint,"/0"); strcpy(destination,"/0"); } void input(); //To input the details void display(); //To display the details int returntr(); int int returnas(); int returnfs(); int returnac(); int returnss(); }tr; int train::returntr() { return trainno; } int train::returnaf() { return nofafseat; } int train::returnas() { return nofasseat; } int train::returnfs() { return noffsseat; } int train::returnac() { return nofacseat; } int train::returnss() { return nofssseat; http://projects.icbse.com/cpp346
3/14
1/19/2015
C++ Project on Railway Ticket Reservation
} 11 void train::input() { clrscr(); gotoxy(10,10); couttrainno; gotoxy(10,12); coutnofafseat; gotoxy(10,14); coutnofasseat; gotoxy(10,16); coutnoffsseat; gotoxy(10,18); coutnofacseat; gotoxy(10,20); coutnofssseat; gotoxy(10,22); cout
View more...
Comments