To analyze the problem gather the requirements and implement railway reservation system and to model the data using UML diagram.
Phase 1: Problem analysis:
The system maintain a ticket database which allow user or passenger to
View railway catalog Register the ticket
Cancel the tickets The passenger enter the details and its details are valid, then the system searches seat availability for specifications based on the availability of tickets ,the system provide the way for alternatives.
Phase 2:
Functional Requirement analysis:
Participant: Person who log on the quiz system.
System controller: Evaluates the answers and displays score to user.
Identifying actors and usecases:
1.employee
Database
Salary
2.controller
Database
Netpay
Deductions
Phase 3:
The various data modeling techniques which are implemented in the payroll processing system are
Use case diagram
Class diagram
Collaboration diagram
Sequence diagram
State chart diagram
Activity diagram
Component diagram
Phase 4:
The software is now designed in rational rose and skeleton code is generated in VBC++
Phase 5:
Implementation:
Use case diagram
p align="center">
class Diagram
Collabrationg Diagram
Sequece Diagram
Sequence Diagram
Activity Diagram
Component Diagram
Source code
EMPLOYEES.CPP
#include "employee.h"
//##ModelId=4892E25D03C8
employee::ticket reservation()
{
}
//##ModelId=4892E27703B9
employee::ticket cancellation()
{
}
EMPLOYEES.H
#ifndef EMPLOYEE_H_HEADER_INCLUDED_B763996F
#define EMPLOYEE_H_HEADER_INCLUDED_B763996F
//##ModelId=4892E1E7004E
class employee
{
public:
//##ModelId=4892E25D03C8
ticket reservation();
//##ModelId=4892E27703B9
ticket cancellation();
private:
//##ModelId=4892E1F70399
train details string();
//##ModelId=4892E224029F
ticket details number();
//##ModelId=4892E23F01D4
check avail num();
};
#endif /* EMPLOYEE_H_HEADER_INCLUDED_B763996F */
RAILWAY CATALOG.CPP
#include "railway catalog1.h"
//##ModelId=48A15329007D
railway catalog::railway timings()
{
}
//##ModelId=48A15331035B
railway catalog::exit()
{
}
RAILWAY CATOLOG.H
#ifndef RAILWAY_CATALOG1_H_HEADER_INCLUDED_B75EA146
#define RAILWAY_CATALOG1_H_HEADER_INCLUDED_B75EA146
//##ModelId=48A15296030D
class railway catalog
{
public:
//##ModelId=48A15329007D
railway timings();
//##ModelId=48A15331035B
exit();
private:
//##ModelId=48A153120148
railway details string;
//##ModelId=48A1531C006D
ticket details number;
};
#endif /* RAILWAY_CATALOG1_H_HEADER_INCLUDED_B75EA146 */
TRAVELLERS.CPP
#include "traveller.h"
//##ModelId=4892E1C20109
traveller::login()
{
}
//##ModelId=4892EF8003D8
traveller::register()
{
}
TRAVELLERS.H
#ifndef TRAVELLER_H_HEADER_INCLUDED_B763D6B3
#define TRAVELLER_H_HEADER_INCLUDED_B763D6B3
//##ModelId=4892E097002E
class traveller
{
public:
//##ModelId=4892E1C20109
login();
//##ModelId=4892EF8003D8
register();
private:
//##ModelId=4892E0A703B9
name string();
//##ModelId=4892E0D90177
address string();
//##ModelId=4892E0E8032C
age number();
};
#endif /* TRAVELLER_H_HEADER_INCLUDED_B763D6B3 */