#include<div><stdio .h="">
#include<stdlib .h="">
#include<conio .h="">
void GL(void);
void GS(void);
void line(void);
void line1(void);
//for calling function
int main()//main function
{
int a,b,n,o;
int A=0,H=0,I=0,P=0,L=0;
int amount=0;
int count=0;
int s=0,m=0,h=0,g=0;
int s1=0,m1=0,h1=0,g1=0;
int s2=0,m2=0,h2=0,g2=0;
int s3=0,m3=0,h3=0,g3=0;
int s4=0,m4=0,h4=0,g4=0;
printf("\n:osama Anam.....\n");
line();
printf("\n\n");
GL();
printf("\t\t\t\xb\xb\xb\xb**********(((()))) MANSEHRA__INTERCHANGE (((())))*********\xb\xb\xb\xb\n");
GL();
GL();
while(int i=8)
{
system("COLOR A0");
// main menu
printf("\n\n\nSelect Interchange\n");
line();
printf("\n**** press 1 for Abbotabad....");
printf("\n**** press 2 for Haripur....");
printf("\n**** press 3 for Islamabad....");
printf("\n**** press 4 for Peshawer....");
printf("\n**** press 5 for Lahore....");
printf("\n**** press 6 for Showing Records....");
printf("\n**** press 7 for Delete The Records....\n\n");
GS();
scanf("\n%d",&a);// ask the user for his choice
// here using if statement
if(a==1)
{
system("COLOR B0");
A++;
printf("\n\n\t\t*****((())) MANSEHRA TO ABBOTABAD ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 30)");
printf("\n*****press 2 for motor cars (RS = 50)");
printf("\n*****press 3 for heavy vechicles (RS = 100)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s++;
amount=amount+30;
count=count+1;
}
if(b==2)
{
m++;
amount=amount+50;
count=count+1;
}
if(b==3)
{
h++;
amount=amount+100;
count=count+1;
}
if(b==4)
{
g++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==2)
{
system("COLOR F0");
H++;
printf("\n\n\t\t*****((())) MANSEHRA TO HARIPUR ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 50)");
printf("\n*****press 2 for motor cars (RS = 100)");
printf("\n*****press 3 for heavy vechicles (RS = 200)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s1++;
amount=amount+50;
count=count+1;
}
if(b==2)
{
m1++;
amount=amount+100;
count=count+1;
}
if(b==3)
{
h1++;
amount=amount+200;
count=count+1;
}
if(b==4)
{
g1++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==3)
{
system("COLOR E0");
I++;
printf("\n\n\t\t*****((())) MANSEHRA TO ISLAMABAD ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 100)");
printf("\n*****press 2 for motor cars (RS = 200)");
printf("\n*****press 3 for heavy vechicles (RS = 300)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s2++;
amount=amount+100;
count=count+1;
}
if(b==2)
{
m2++;
amount=amount+200;
count=count+1;
}
if(b==3)
{
h2++;
amount=amount+300;
count=count+1;
}
if(b==4)
{
g2++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n-----------------------------------");
}
}
else if(a==4)
{
system("COLOR C0");
P++;
printf("\n\n\t\t*****((())) MANSEHRA TO PESHAWER ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 200)");
printf("\n*****press 2 for motor cars (RS = 400)");
printf("\n*****press 3 for heavy vechicles (RS = 600)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s3++;
amount=amount+200;
count=count+1;
}
if(b==2)
{
m3++;
amount=amount+400;
count=count+1;
}
if(b==3)
{
h3++;
amount=amount+600;
count=count+1;
}
if(b==4)
{
g3++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==5)
{
system("COLOR D0");
L++;
printf("\n\n\t\t*****((())) MANSEHRA TO LAHORE ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 400)");
printf("\n*****press 2 for motor cars (RS = 800)");
printf("\n*****press 3 for heavy vechicles (RS = 1000)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s4++;
amount=amount+400;
count=count+1;
}
if(b==2)
{
m4++;
amount=amount+800;
count=count+1;
}
if(b==3)
{
h4++;
amount=amount+1000;
count=count+1;
}
if(b==4)
{
g4++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==6)
{
GS();
printf("*********************************************RESORDS****************************************\n");
GS();
printf("\nTotal Vechiles Entered = %d",count);
printf("\nTotal Amount = %d",amount);
printf("\nTotal Cars Entered Mansehra to Abbotabad = %d",A);
printf("\nTotal Cars Entered Mansehra to Harripur = %d",H);
printf("\nTotal Cars Entered Mansehra to Islamabad = %d",I);
printf("\nTotal Cars Entered Mansehra to Peshawer = %d",P);
printf("\nTotal Cars Entered Mansehra to Lahore = %d\n\n\n",L);
printf("***Press 1 For More Details About vechiles\n***press 0 for return to menu\n");
GS();
scanf("\n%d",&n);
if(n==1)
{
GS();
printf("\n*****Press 1 For records of Cars that Entered Mansehra to Abbotabad ");
printf("\n*****Press 2 For records of Cars that Entered Mansehra to Harripur ");
printf("\n*****Press 3 For records of Cars that Entered Mansehra to Islamabad ");
printf("\n*****Press 4 For records of Cars that Entered Mansehra to Peshawer ");
printf("\n*****Press 5 For records of Cars that Entered Mansehra to lahore \n\n");
GS();
scanf("%d",&o);
if(o==1)
{
printf("\n\t\tRECORDS OF MANSEHRA TO ABBOTABAD\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s);
printf("\n Number Of Motor Cras Entered = %d",m);
printf("\n Number Of Heavy Vehicles Entered = %d",h);
printf("\n Number Of Government Vehicles Entered = %d\n",g);
GS();
}
else if(o==2)
{
printf("\n\t\tRECORDS OF MANSEHRA TO HARRIPUR\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s1);
printf("\n Number Of Motor Cras Entered = %d",m1);
printf("\n Number Of Heavy Vehicles Entered = %d",h1);
printf("\n Number Of Government Vehicles Entered = %d\n",g1);
GS();
}
else if(o==3)
{
printf("\n\t\tRECORDS OF MANSEHRA TO ISLAMABAD\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s2);
printf("\n Number Of Motor Cras Entered = %d",m2);
printf("\n Number Of Heavy Vehicles Entered = %d",h2);
printf("\n Number Of Government Vehicles Entered = %d\n",g2);
GS();
}
else if(o==4)
{
printf("\n\t\tRECORDS OF MANSEHRA TO PESHAWER\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s3);
printf("\n Number Of Motor Cras Entered = %d",m3);
printf("\n Number Of Heavy Vehicles Entered = %d",h3);
printf("\n Number Of Government Vehicles Entered = %d\n",g3);
GS();
}
else if(o==4)
{
printf("\n\t\tRECORDS OF MANSEHRA TO LAHORE\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s4);
printf("\n Number Of Motor Cras Entered = %d",m4);
printf("\n Number Of Heavy Vehicles Entered = %d",h4);
printf("\n Number Of Government Vehicles Entered = %d\n",g4);
GS();
}
else
{
printf("\n -----------------------------------");
}
}
else
printf("\nExisted And Return To Menu\n");
line();
}
else if(a==7)
{
amount=0;
count=0;
A=0;
H=0;
I=0;
P=0;
L=0;
printf("\n *******************************RECORDS DELETED***************************************\n");
GS();
GS();
}
else
{
printf("\n You Entered invalid Key\n");
}
}
return 0;
}
void GL(void)
{
printf("\t*************************************************************************************************\n");
}
void GS(void)
{
printf("********************************************************************************************\n");
}
void line(void)
{
printf("______________________________________...\n");
}
void line1(void)
{
printf("\t:____________________________________________________________...\n");
}</conio></stdlib></stdio></div>#include<div><stdio .h="">
#include<stdlib .h="">
#include<conio .h="">
void GL(void);
void GS(void);
void line(void);
void line1(void);
//for calling function
int main()//main function
{
int a,b,n,o;
int A=0,H=0,I=0,P=0,L=0;
int amount=0;
int count=0;
int s=0,m=0,h=0,g=0;
int s1=0,m1=0,h1=0,g1=0;
int s2=0,m2=0,h2=0,g2=0;
int s3=0,m3=0,h3=0,g3=0;
int s4=0,m4=0,h4=0,g4=0;
printf("\n:osama Anam.....\n");
line();
printf("\n\n");
GL();
printf("\t\t\t\xb\xb\xb\xb**********(((()))) MANSEHRA__INTERCHANGE (((())))*********\xb\xb\xb\xb\n");
GL();
GL();
while(int i=8)
{
system("COLOR A0");
// main menu
printf("\n\n\nSelect Interchange\n");
line();
printf("\n**** press 1 for Abbotabad....");
printf("\n**** press 2 for Haripur....");
printf("\n**** press 3 for Islamabad....");
printf("\n**** press 4 for Peshawer....");
printf("\n**** press 5 for Lahore....");
printf("\n**** press 6 for Showing Records....");
printf("\n**** press 7 for Delete The Records....\n\n");
GS();
scanf("\n%d",&a);// ask the user for his choice
// here using if statement
if(a==1)
{
system("COLOR B0");
A++;
printf("\n\n\t\t*****((())) MANSEHRA TO ABBOTABAD ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 30)");
printf("\n*****press 2 for motor cars (RS = 50)");
printf("\n*****press 3 for heavy vechicles (RS = 100)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s++;
amount=amount+30;
count=count+1;
}
if(b==2)
{
m++;
amount=amount+50;
count=count+1;
}
if(b==3)
{
h++;
amount=amount+100;
count=count+1;
}
if(b==4)
{
g++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==2)
{
system("COLOR F0");
H++;
printf("\n\n\t\t*****((())) MANSEHRA TO HARIPUR ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 50)");
printf("\n*****press 2 for motor cars (RS = 100)");
printf("\n*****press 3 for heavy vechicles (RS = 200)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s1++;
amount=amount+50;
count=count+1;
}
if(b==2)
{
m1++;
amount=amount+100;
count=count+1;
}
if(b==3)
{
h1++;
amount=amount+200;
count=count+1;
}
if(b==4)
{
g1++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==3)
{
system("COLOR E0");
I++;
printf("\n\n\t\t*****((())) MANSEHRA TO ISLAMABAD ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 100)");
printf("\n*****press 2 for motor cars (RS = 200)");
printf("\n*****press 3 for heavy vechicles (RS = 300)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s2++;
amount=amount+100;
count=count+1;
}
if(b==2)
{
m2++;
amount=amount+200;
count=count+1;
}
if(b==3)
{
h2++;
amount=amount+300;
count=count+1;
}
if(b==4)
{
g2++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n-----------------------------------");
}
}
else if(a==4)
{
system("COLOR C0");
P++;
printf("\n\n\t\t*****((())) MANSEHRA TO PESHAWER ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 200)");
printf("\n*****press 2 for motor cars (RS = 400)");
printf("\n*****press 3 for heavy vechicles (RS = 600)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s3++;
amount=amount+200;
count=count+1;
}
if(b==2)
{
m3++;
amount=amount+400;
count=count+1;
}
if(b==3)
{
h3++;
amount=amount+600;
count=count+1;
}
if(b==4)
{
g3++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==5)
{
system("COLOR D0");
L++;
printf("\n\n\t\t*****((())) MANSEHRA TO LAHORE ((()))*****\n");
line1();
printf("\n\n*****press 1 for small vechicles (RS = 400)");
printf("\n*****press 2 for motor cars (RS = 800)");
printf("\n*****press 3 for heavy vechicles (RS = 1000)");
printf("\n*****press 4 for government vechicles (RS = 0)\n");
GS();
scanf("%d",&b);
if(b==1)
{
s4++;
amount=amount+400;
count=count+1;
}
if(b==2)
{
m4++;
amount=amount+800;
count=count+1;
}
if(b==3)
{
h4++;
amount=amount+1000;
count=count+1;
}
if(b==4)
{
g4++;
amount=amount+0;
count=count+1;
}
else
{
printf("\n -----------------------------------");
}
}
else if(a==6)
{
GS();
printf("*********************************************RESORDS****************************************\n");
GS();
printf("\nTotal Vechiles Entered = %d",count);
printf("\nTotal Amount = %d",amount);
printf("\nTotal Cars Entered Mansehra to Abbotabad = %d",A);
printf("\nTotal Cars Entered Mansehra to Harripur = %d",H);
printf("\nTotal Cars Entered Mansehra to Islamabad = %d",I);
printf("\nTotal Cars Entered Mansehra to Peshawer = %d",P);
printf("\nTotal Cars Entered Mansehra to Lahore = %d\n\n\n",L);
printf("***Press 1 For More Details About vechiles\n***press 0 for return to menu\n");
GS();
scanf("\n%d",&n);
if(n==1)
{
GS();
printf("\n*****Press 1 For records of Cars that Entered Mansehra to Abbotabad ");
printf("\n*****Press 2 For records of Cars that Entered Mansehra to Harripur ");
printf("\n*****Press 3 For records of Cars that Entered Mansehra to Islamabad ");
printf("\n*****Press 4 For records of Cars that Entered Mansehra to Peshawer ");
printf("\n*****Press 5 For records of Cars that Entered Mansehra to lahore \n\n");
GS();
scanf("%d",&o);
if(o==1)
{
printf("\n\t\tRECORDS OF MANSEHRA TO ABBOTABAD\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s);
printf("\n Number Of Motor Cras Entered = %d",m);
printf("\n Number Of Heavy Vehicles Entered = %d",h);
printf("\n Number Of Government Vehicles Entered = %d\n",g);
GS();
}
else if(o==2)
{
printf("\n\t\tRECORDS OF MANSEHRA TO HARRIPUR\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s1);
printf("\n Number Of Motor Cras Entered = %d",m1);
printf("\n Number Of Heavy Vehicles Entered = %d",h1);
printf("\n Number Of Government Vehicles Entered = %d\n",g1);
GS();
}
else if(o==3)
{
printf("\n\t\tRECORDS OF MANSEHRA TO ISLAMABAD\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s2);
printf("\n Number Of Motor Cras Entered = %d",m2);
printf("\n Number Of Heavy Vehicles Entered = %d",h2);
printf("\n Number Of Government Vehicles Entered = %d\n",g2);
GS();
}
else if(o==4)
{
printf("\n\t\tRECORDS OF MANSEHRA TO PESHAWER\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s3);
printf("\n Number Of Motor Cras Entered = %d",m3);
printf("\n Number Of Heavy Vehicles Entered = %d",h3);
printf("\n Number Of Government Vehicles Entered = %d\n",g3);
GS();
}
else if(o==4)
{
printf("\n\t\tRECORDS OF MANSEHRA TO LAHORE\n");
line1();
printf("\n Number Of Small Vehicles Entered = %d",s4);
printf("\n Number Of Motor Cras Entered = %d",m4);
printf("\n Number Of Heavy Vehicles Entered = %d",h4);
printf("\n Number Of Government Vehicles Entered = %d\n",g4);
GS();
}
else
{
printf("\n -----------------------------------");
}
}
else
printf("\nExisted And Return To Menu\n");
line();
}
else if(a==7)
{
amount=0;
count=0;
A=0;
H=0;
I=0;
P=0;
L=0;
printf("\n *******************************RECORDS DELETED***************************************\n");
GS();
GS();
}
else
{
printf("\n You Entered invalid Key\n");
}
}
return 0;
}
void GL(void)
{
printf("\t*************************************************************************************************\n");
}
void GS(void)
{
printf("********************************************************************************************\n");
}
void line(void)
{
printf("______________________________________...\n");
}
void line1(void)
{
printf("\t:____________________________________________________________...\n");
}</conio></stdlib></stdio></div>
wow nyc
ReplyDelete