Print Friendly and PDF
Here i am discuss about C project called travel airbase agency.main feature of this project 
is 
  • Check your luggage weight.it is not heavier than weight suggested
  • Documents with you like CNIC 
  • Contact to our office personally or on phone
Program:

#include<stdio.h>
#include<conio.h>
void info();
void main()
{
char yes;
int m;
clrscr();
printf(" **********TRAVEL_AIRBASRE-AGENCY********** \n");
printf(" ........................................... \n\n");
printf("Our aim is to provide and facilitate you with easy and comfortable journey.So \n that you reach at your destination with ease and comfortable enviorment.\n\n");
printf(" *****************Informations***************** \n");
printf(" ............................................... \n");
printf(" Flight-Time Arival-time \n");
printf("Pakistan:08:50 pm 12:00 am\n");
printf("China :06:15 am 11:00 pm\n");
printf("USA :02:35 am 05:30 pm\n");
printf("Japan :05:00 am 01:00 am\n");
printf("India :12:00 am 11:00 am\n\n");
printf(" ****************Instructions**************** \n ");
printf(" ............................................... \n");
printf("#...Please check your luggage weight.it is not heavier than weight suggested.\n");
printf("#...Please bring your necessary documents with you like CNIC \n");
printf("#...In case of problem,Contact to our office personaly or on phone\n");
printf(" Thank you. \n");
printf("If you want to travel with us.you have to Fill a form so please continue it\n");
printf("Enter 'Y' for filling that form ");
scanf("%c",&yes);
clrscr();
if(yes=='y'){
printf("Enter '1' for PAKISTAN\n");
printf("Enter '2' for CHINA\n");
printf("Enter '3' for USA\n");
printf("Enter '4' for JAPAN\n");
printf("Enter '5' for INDIA\n");
scanf("%d",&m);
clrscr();
switch(m){
case 1:
{
info();
break;
}
case 2:
{
info();
break;
}
case 3:
{
info();
break;
}
case 4:
{
info();
break;
}
case 5:
{
info();
break;
}
default:
{
printf("enter right number as given");
break;
}
}
}
}
void info()
{
char namei[15],fname[15],dname[10],cnic[14],pno[11],email[25],age[3];
int b,j,n; printf("\n Enter your name::::");
gets(namei);
printf("\n Enter your father name::::");
gets(fname);
printf("\n Enter your CNIC number(max 12 digit::::");
{
for(int a=1;a<15;a++){
scanf("%c",&cnic[a]);
b=cnic[a];
if(b>=48&&b<=57){printf("%c",cnic[a]);
}
}
}
printf("\n Enter you E-mail adress::::");
gets(email);
printf("\n Enter your Phone-number(max eleven digit::::");
{
for(int m=1;m<13;m++){
scanf("%c",&pno[m]);
n=pno[m];
if(n>=48&&n<=57){
printf("%c",pno[m]);
}
}
}
printf("\n Enter your Destination city::::");
gets(dname);
printf("\n Enter your age(max 2 digits::::");
{
for(int k=1;k<3;k++){
scanf("%c",&age[k]);
j=cnic[k];
if(j>=48&&j<=58){
printf("%c",age[k]);
}
}
}
}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: