RULES AND REGULATION:-
01.The ticket will be cancelled if the passengers fail to report at
the station 15 minutes before the depurture time.
02.If necessary the aithority can change the seat number of the
passengers.
03.The passengers will look after their hand laggage with care, otherwise
if the language is lost the authority will not be liable.
04.The passengers will bear the carrying charges of their own luggage.
05.The passengers will be responsible for carrying any kind of illegal
goods,the tranfport authority willnot be liable for that.
06.If the passengers want to cancel or change the date of journey,ticket
must be placed to the concerned booking,telephon massage will not be
allowed under any circumstance.
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int s,d;
class A
{
private:
public:
int fun1()
{
int x;
clrscr();
cout<<"Where do you want to go:";
cout<<"\n1.inter Bangladesh\n2.abrode Bangladesh\n3.Exit";
cout<<"\nx=";
cin>>x;
clrscr();
if(x==1)
{
cout<<"\n1.JOSSOHOR\n2.SYLET\n3.CHITTAGONG\n4.SOYODPUR\n5.EXIT";
}
else if(x==2)
{
cout<<"\n1.AMERICA\n2.ENGLAND\n3.INDIA\n4.SOUDI-ARAB\n5.PAKISTAN\n6.AUSTRALIA\n7.SOUTH-AFRICA\n8.KOREA\n9.CHIN\n10.SPAN\n11.EXIT";
}
else if(x==3)
{
exit (0);
}
s=x;
return s;
}
int fun2()
{
int y;
cout<<"\ny=";
cin>>y;
clrscr();
if(y==1)
{
cout<<" *****Bangladesh Biman-J*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==2)
{
cout<<" *****Bangladesh Biman-Sy*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==3)
{
cout<<" *****Bangladesh Biman-C*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==4)
{
cout<<" *****Bangladesh Biman-So*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==5)
{
exit (0);
}
cout<<"\nenter your choice=";
cin>>d;
return d;
}
int fun3()
{
int z;
cout<<"\nz=";
cin>>z;
clrscr();
if(z==1)
{
cout<<" *****Bangladesh Biman-A*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==2)
{
cout<<" *****Bangladesh Biman-E*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==3)
{
cout<<" *****Bangladesh Biman-I*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==4)
{
cout<<" *****Bangladesh Biman-SA*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==5)
{
cout<<" *****Bangladesh Biman-P*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==6)
{
cout<<" *****Bangladesh Biman-As*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==7)
{
cout<<" *****Bangladesh Biman-SoA*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==8)
{
cout<<" *****Bangladesh Biman-K*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==9)
{
cout<<" *****Bangladesh Biman-C*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==10)
{
cout<<" *****Bangladesh Biman-S*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==11)
{
exit (0);
}
cout<<"\nenter your choice=";
cin>>d;
return d;
}
};
class Booking
{
private:
public:
void newbooking()
{
char name1[10],name2[10],f_name[20],m_name[20],nationality[10],purpose[10],occupation[10];
int date[4],i,arrival[3],depurture[3];
char a,flight[10],seat[10],b,c;
clrscr();
cout<<"enter your first name=";
//cin>>name1;
for(i=0;name1[i-1]!='\n';i++)
{
name1[i]=getchar();
}
cout<<"enter your last name=";
//cin>>name2;
for(i=0;name2[i-1]!='\n';i++)
{
name2[i]=getchar();
}
cout<<"enter your father name=";
//cin>>f_name;
for(i=0;f_name[i-1]!='\n';i++)
{
f_name[i]=getchar();
}
cout<<"enter your mother name=";
//cin>>m_name;
for(i=0;m_name[i-1]!='\n';i++)
{
m_name[i]=getchar();
}
cout<<"enter your nationality=";
//cin>>nationality;
for(i=0;nationality[i-1]!='\n';i++)
{
nationality[i]=getchar();
}
cout<<"enter your purpose=";
//cin>>purpose;
for(i=0;purpose[i-1]!='\n';i++)
{
purpose[i]=getchar();
}
cout<<"enter your occupation=";
//cin>>occupation;
for(i=0;occupation[i-1]!='\n';i++)
{
occupation[i]=getchar();
}
cout<<"when do you want to go(dd/mm/yyyy)=";
for(i=0;i<=2;i++)
{
cin>>date[i];
cin>>a;
if(a!='\n')
{
break;
}
}
cout<<"flight no.=";
for(i=0;flight[i-1]!='\n';i++)
{
flight[i]=getchar();
}
cout<<"seat no.=";
for(i=0;seat[i-1]!='\n';i++)
{
seat[i]=getchar();
}
cout<<"arrival time=";
for(i=0;i<=1;i++)
{
cin>>arrival[i];
cin>>b;
}
cout<<"depurture=";
for(i=0;i<=1;i++)
{
cin>>depurture[i];
cin>>c;
}
}
void delet()
{
}
void change()
{
}
void show()
{
}
};
void main()
{
A a1;
Booking b1[10];
int i;
clrscr();
a1.fun1();
if(s==1)
{
a1.fun2();
}
else if(s==2)
{
a1.fun3();
}
else if(s==3)
{
exit (0);
}
if(d==1)
{
}
else if(d==2)
{
}
else if(d==3)
{
}
else if(d==4)
{
for(i=0;i<1;i++)
{
b1[i].newbooking();
}
}
else if(d==5)
{
}
else if(d==6)
{
}
getch();
}
01.The ticket will be cancelled if the passengers fail to report at
the station 15 minutes before the depurture time.
02.If necessary the aithority can change the seat number of the
passengers.
03.The passengers will look after their hand laggage with care, otherwise
if the language is lost the authority will not be liable.
04.The passengers will bear the carrying charges of their own luggage.
05.The passengers will be responsible for carrying any kind of illegal
goods,the tranfport authority willnot be liable for that.
06.If the passengers want to cancel or change the date of journey,ticket
must be placed to the concerned booking,telephon massage will not be
allowed under any circumstance.
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int s,d;
class A
{
private:
public:
int fun1()
{
int x;
clrscr();
cout<<"Where do you want to go:";
cout<<"\n1.inter Bangladesh\n2.abrode Bangladesh\n3.Exit";
cout<<"\nx=";
cin>>x;
clrscr();
if(x==1)
{
cout<<"\n1.JOSSOHOR\n2.SYLET\n3.CHITTAGONG\n4.SOYODPUR\n5.EXIT";
}
else if(x==2)
{
cout<<"\n1.AMERICA\n2.ENGLAND\n3.INDIA\n4.SOUDI-ARAB\n5.PAKISTAN\n6.AUSTRALIA\n7.SOUTH-AFRICA\n8.KOREA\n9.CHIN\n10.SPAN\n11.EXIT";
}
else if(x==3)
{
exit (0);
}
s=x;
return s;
}
int fun2()
{
int y;
cout<<"\ny=";
cin>>y;
clrscr();
if(y==1)
{
cout<<" *****Bangladesh Biman-J*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==2)
{
cout<<" *****Bangladesh Biman-Sy*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==3)
{
cout<<" *****Bangladesh Biman-C*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==4)
{
cout<<" *****Bangladesh Biman-So*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(y==5)
{
exit (0);
}
cout<<"\nenter your choice=";
cin>>d;
return d;
}
int fun3()
{
int z;
cout<<"\nz=";
cin>>z;
clrscr();
if(z==1)
{
cout<<" *****Bangladesh Biman-A*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==2)
{
cout<<" *****Bangladesh Biman-E*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==3)
{
cout<<" *****Bangladesh Biman-I*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==4)
{
cout<<" *****Bangladesh Biman-SA*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==5)
{
cout<<" *****Bangladesh Biman-P*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==6)
{
cout<<" *****Bangladesh Biman-As*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==7)
{
cout<<" *****Bangladesh Biman-SoA*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==8)
{
cout<<" *****Bangladesh Biman-K*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==9)
{
cout<<" *****Bangladesh Biman-C*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==10)
{
cout<<" *****Bangladesh Biman-S*****";
cout<<"\n1.Facilty\n2.Time table\n3.Sit\n4.Booking\n5.Exit";
}
else if(z==11)
{
exit (0);
}
cout<<"\nenter your choice=";
cin>>d;
return d;
}
};
class Booking
{
private:
public:
void newbooking()
{
char name1[10],name2[10],f_name[20],m_name[20],nationality[10],purpose[10],occupation[10];
int date[4],i,arrival[3],depurture[3];
char a,flight[10],seat[10],b,c;
clrscr();
cout<<"enter your first name=";
//cin>>name1;
for(i=0;name1[i-1]!='\n';i++)
{
name1[i]=getchar();
}
cout<<"enter your last name=";
//cin>>name2;
for(i=0;name2[i-1]!='\n';i++)
{
name2[i]=getchar();
}
cout<<"enter your father name=";
//cin>>f_name;
for(i=0;f_name[i-1]!='\n';i++)
{
f_name[i]=getchar();
}
cout<<"enter your mother name=";
//cin>>m_name;
for(i=0;m_name[i-1]!='\n';i++)
{
m_name[i]=getchar();
}
cout<<"enter your nationality=";
//cin>>nationality;
for(i=0;nationality[i-1]!='\n';i++)
{
nationality[i]=getchar();
}
cout<<"enter your purpose=";
//cin>>purpose;
for(i=0;purpose[i-1]!='\n';i++)
{
purpose[i]=getchar();
}
cout<<"enter your occupation=";
//cin>>occupation;
for(i=0;occupation[i-1]!='\n';i++)
{
occupation[i]=getchar();
}
cout<<"when do you want to go(dd/mm/yyyy)=";
for(i=0;i<=2;i++)
{
cin>>date[i];
cin>>a;
if(a!='\n')
{
break;
}
}
cout<<"flight no.=";
for(i=0;flight[i-1]!='\n';i++)
{
flight[i]=getchar();
}
cout<<"seat no.=";
for(i=0;seat[i-1]!='\n';i++)
{
seat[i]=getchar();
}
cout<<"arrival time=";
for(i=0;i<=1;i++)
{
cin>>arrival[i];
cin>>b;
}
cout<<"depurture=";
for(i=0;i<=1;i++)
{
cin>>depurture[i];
cin>>c;
}
}
void delet()
{
}
void change()
{
}
void show()
{
}
};
void main()
{
A a1;
Booking b1[10];
int i;
clrscr();
a1.fun1();
if(s==1)
{
a1.fun2();
}
else if(s==2)
{
a1.fun3();
}
else if(s==3)
{
exit (0);
}
if(d==1)
{
}
else if(d==2)
{
}
else if(d==3)
{
}
else if(d==4)
{
for(i=0;i<1;i++)
{
b1[i].newbooking();
}
}
else if(d==5)
{
}
else if(d==6)
{
}
getch();
}
No comments:
Post a Comment