 CODING

#include<graphics.h> #include<c:\co2main.c> main() { /*you have to execute courcode.c first time before using this project only at once*/ int gd=DETECT,gm; clrscr(); initgraph(&gd,&gm,""); setbkcolor(BLUE); setcolor(YELLOW); settextstyle(7,0,2); outtextxy(200,5,"PROJECT REPORT"); outtextxy(270,40,"ON"); outtextxy(220,230,"MLN COLLEGE"); outtextxy(215,260,"YAMUNA NAGAR"); outtextxy(250,110,"FOR "); outtextxy(120,140," XYZ COURIER, DELHI"); outtextxy(220,355,"PRIYA MEHTA"); outtextxy(190,380,"B.Com.-III(COMP. APP.)"); settextstyle(3,0,4); setcolor(YELLOW); outtextxy(90,70,"COURIER MANAGEMENT SYSTEM"); settextstyle(1,0,2);

outtextxy(220,200,"SUBMITTED TO:"); outtextxy(230,330,"SUBMITTED BY:"); getch(); closegraph(); textcolor(1); textbackground(6); co2main(); return(0); }

#include<c:\co3main.c> #include<c:\co4main.c> #include<c:\co5main.c> #include<stdio.h> #include<conio.h> #include<graphics.h> co2main() { //char ch[4]; int gd=DETECT,gm,ans; clrscr(); initgraph(&gd,&gm,""); setbkcolor(RED); settextstyle(1,0,4); outtextxy(225,100,"COURIER"); outtextxy(150,160,"MANAGEMENT SYSTEM"); outtextxy(200,220,"DEVELOPED BY"); settextstyle(1,0,6); outtextxy(130,280,"PRIYA MEHTA"); getch(); closegraph(); n1: clrscr(); gotoxy(25,6); printf("=========MAIN MENU========="); gotoxy(25,8);

printf("1.:-CONSIGNMENT MENU"); gotoxy(25,10); printf("2.:-REPORT MENU"); gotoxy(25,12); printf("3.:-CONSIGNMENT DELIVERY"); gotoxy(25,14); printf("4.:-QUIT MENU"); gotoxy(25,16); printf("SELECT ANY ONE:"); gotoxy(25,18); printf("ENTER YOUR CHOICE:"); scanf("%d",&ans); switch(ans) { case 1:co3main(); break; case 2:co4main(); break; case 3:co5main(); break; case 4:textbackground(BLACK); textcolor(WHITE); clrscr(); exit(0); break; default:gotoxy(20,20); printf("CHOICE NOT AVAILABLE");

getch(); } goto n1; }

:DELETION OF CONSIGNMENT").#include<c:\co31. scanf("%d". printf("1. printf("4.10).:MODIFICATION OF CONSIGNMENT"). gotoxy(25. . gotoxy(30.c> #include<c:\co33.h> #include<conio.c> #include<c:\co32. printf("CONSIGNMENT MENU"). break.6).14). printf("3.:ADDITION OF CONSIGNMENT").&an).11).h> co3main() { int an.:EXIT TO MAIN MENU"). gotoxy(25. printf("2. gotoxy(25. gotoxy(25.12). printf("SELECT ANY ONE:"). gotoxy(25.c> #include<stdio. n1: clrscr(). switch(an) { case 1:co31main().18).

} goto n1. } . case 4:return 1.case 2:co32main(). break.20). getch(). case 3:co33main(). printf("CHOICE NOT AVAILABLE"). default:gotoxy(20. break.

:DELIVERED CONSIGNMENT REPORT"). printf("4.6).12). gotoxy(25. gotoxy(25.c> #include<c:\co43.#include<c:\co41.c> #include<c:\co42.18). gotoxy(25. printf("3.:NON-DELIVERED CONSIGNMENT METHOD").13).h> #include<conio. gotoxy(30.14). printf("2.:TOTAL CONSIGNMENT REPORT"). gotoxy(25. printf("5. switch(an) .h> co4main() { int an. gotoxy(25.:SINGLE CONSIGNMENT ENQUIRY"). scanf("%d". printf("SELECT ANY ONE:").:EXIT TO MAIN MENU"). gotoxy(25.c> #include<c:\co44.11).10).&an).c> #include<stdio. printf("1. n1: clrscr(). printf("REPORT MENU").

getch(). default:gotoxy(20. break. case 5:return 1. } .{ case 1:co41main(). break. printf("CHOICE NOT AVAILABLE"). break. } goto n1. case 3:co44main(). case 4:co43main(). case 2:co42main(). break.20).

float wt.aaddress[20].&con).choice.*ssf. char count='y'. while(count=='y'||count=='Y') { clrscr(). printf("DELIVERY MENU"). struct cust { int conno.address[20]. p=0. int con.2).hour.h> co5main() { FILE *ds.sec. char cname[20].h> #include<dos.dat". scanf("%d". gotoxy(25.city[15].aname[20].p. fs=fopen("add1.*fs.//customer delivery #include<stdio.h> #include<conio.cusm. int dd.yyyy. } cus.type.amt.min.4)."rb"). long int teleno.ateleno.mm. .acity[15]. gotoxy(5. printf("ENTER CONSIGNMENT NUMBER:").

9).7).1.10). printf("AMOUNT:%f". gotoxy(5.city).8). gotoxy(40. gotoxy(5.cname).7).cus.teleno).cus. while(fread(&cus. gotoxy(5.amt).:").wt). gotoxy(40. gotoxy(5.sizeof(cus). printf("PHONE NO. puts(cus.ssf=fopen("temp.cus. printf("CITY:").:%ld".mm. printf("DATE IS:[DD MM YYYY]:%d %d %d".conno==con) { p++. .cus.cus. printf("SENDER'S NAME/DEPT. puts(cus. printf("CONSIGNMENT TYPE:[L/P]:%c". gotoxy(40.dat".cus. printf("ADDRESS:").8). gotoxy(5.cus.fs)) { if (cus.address). gotoxy(40.6).9).type).yyyy).dd.10). printf("WEIGHT:%f"."ab"). puts(cus.

gotoxy(5.printf("TIME IS:[HH:MM:SS]:%d:%d:%d". printf("CITY:").hour.acity).cus.1. fclose(ssf).15). printf("ADDRESSEE'S NAME:").13).ateleno). puts(cus.sizeof(cus).15). gotoxy(5. gotoxy(5.aaddress). if (p==0) { gotoxy(10. printf("PHONE NO.ssf). puts(cus.cus.12).cus.min. } else { . printf("ADDRESS:").} } fclose(fs).sec). printf("THIS CONSIGNMENT NUMBER DOESN'T EXIST OR ALREADY DELIVERED"). gotoxy(50. puts(cus.cus.:%ld". gotoxy(50.13). } else {fwrite(&cus.12).aname).

} //customer addition . fwrite(&cus.printf("CONSIGNMENT DELIVERED :[INFORMATION CORRECT:"). printf("DELIVER MORE ENTRY:").dat".dat".fs)) if (cus. return(0). scanf("%s".ds).sizeof(cus).dat").dat").dat").sizeof(cus)."add1. fclose(ds).1. remove("add1. scanf("%s". } fclose(fs). } else remove("temp.20)."ab"). } gotoxy(20. while(fread(&cus. } getch().1.conno==con) { ds=fopen("deladd. rename("temp.&count)."rb").dat". if (choice=='y'||choice=='Y') { fs=fopen("add1.&choice).

fclose(temp).amt.ab.aname[20].min.mm.count='y'.h> #include<conio.temp).h> co31main() { FILE *temp.h> #include<dos. cus. long int teleno.2). } cus."rb").acity[15]. con++. struct cust { int conno.address[20].aaddress[20]. int dd.yyyy.#include<stdio. struct date d.ateleno. float wt.conno=con. while(count=='y'||count=='Y') { clrscr().*mas.*sf. struct time t. temp=fopen("courcode". char ch. gotoxy(25.sec.sizeof(con). char cname[20].1. int con=0.type. . fread(&con.*fs.hour.city[15].

if (cus. gotoxy(5.&cus.teleno). printf("ENTER ADDRESS:"). gotoxy(5.da_day.printf("CONSIGNMENT ADDITION").7).6).&cus.da_year. gotoxy(40.dd=d.type=='l'||cus.city).type=='P') { getdate(&d). gotoxy(22.cus.mm.yyyy=d. printf("ENTER CITY:").6).5).:").type). printf("ENTER PHONE NO. .cus. scanf("%ld". printf("ENTER CONSIGNMENT TYPE:[L/P]:"). printf("DATE IS:[DD MM YYYY]:%d %d %d". gotoxy(5.conno).type=='L'||cus.yyyy). gets(cus. IS:%d".dd. cus. cus. gotoxy(45.type=='p'||cus. printf("CON.8).cname). gotoxy(5. gets(cus. gets(cus.7).:"). scanf("%s".cus.mm=d.cus.da_mon. printf("ENTER SENDER'S NAME/DEPT. gets(cus. cus. NO.address).cname).5).

12).:").cus.ti_sec.&cus. gets(cus.15). printf("ENTER WEIGHT:").13).aaddress). .amt).hour=t.wt).ateleno). scanf("%ld". gets(cus.cus.8).ti_hour.&cus. printf("ENTER CITY:"). gotoxy(47. printf("ENTER ADDRESS:").9).9).sec=t.aname).gettime(&t). scanf("%f".hour.ti_min.min. gets(cus.&cus. gotoxy(5.min=t.Only"). cus. gotoxy(5. printf("TIME IS:[HH:MM:SS]:%d:%d:%d". cus. gotoxy(40. 100/. printf("Our Liability For Any Loss Or Damage To The Shipment Is Only Rs.cus.sec).aname). scanf("%f". gotoxy(5. gotoxy(40. gotoxy(48. gotoxy(5. printf("ENTER AMOUNT:").acity). gets(cus.12). printf("ENTER PHONE NO. cus.13). printf("ENTER ADDRESSEE'S NAME:").

} //customer modification #include<stdio. fclose(sf). } gotoxy(20.h> .sf).17). printf("NOT VALID TYPE"). fclose(mas). }return(0).conno.&ch).mas).sizeof(cus).conno). fwrite(&cus.22).1.18).temp)."ab")."ab").1.dat".dat".1. scanf("%s".gotoxy(10. sf=fopen("add1. if (ch=='y'||ch=='Y') { temp=fopen("courcode"."wb"). printf("INFORMATION CORRECT:[Y/N]:"). fwrite(&cus. fwrite(&cus. printf("ADD MORE ENTRY:").&count).sizeof(cus). fclose(temp). scanf("%s".sizeof(cus. mas=fopen("addmas. }} else { gotoxy(20.

acity[15].sec. printf("ENTER CONSIGNMENT NUMBER:"). int con.*fs.cusm. gotoxy(5.min.dat".mm. float wt.1.aaddress[20].city[15]. printf("CONSIGNMENT MODIFICATION").&con). while(count=='y'||count=='Y') { clrscr(). } cus. int dd.sizeof(cus). while(fread(&cus. char count='y'.p=0.yyyy.4).h> co32main() { FILE *mas. scanf("%d". char cname[20]. gotoxy(25.conno==con) ."rb+"). fs=fopen("add1.amt.aname[20].type. long int teleno.ch.2).choice.fs)) { if (cus.ateleno.h> #include<conio. struct cust { int conno.#include<dos.hour.address[20].

dd. printf("CONSIGNMENT TYPE:[L/P]:%c".5). gotoxy(5.cus. printf("AMOUNT:%f".wt).12).8). printf("PHONE NO. printf("TIME IS:[HH:MM:SS]:%d:%d:%d". printf("ADDRESS:").:%ld". gotoxy(40. gotoxy(40.9).teleno). printf("CITY:").min.type). gotoxy(5. printf("DATE IS:[DD MM YYYY]:%d %d %d".7). .cus. gotoxy(45.address).cus.:"). gotoxy(40. printf("SENDER'S NAME/DEPT.yyyy). printf("ADDRESSEE'S NAME:").9).cus.cus.mm. gotoxy(5.hour.sec).amt).cus.7).6). puts(cus.8).6).cus. gotoxy(5.cus.aname).city). puts(cus.cus.cus. gotoxy(40.{ p=1. printf("WEIGHT:%f".12).cname). puts(cus. gotoxy(25. gotoxy(5. puts(cus.

2).ateleno).:").cname). scanf("%s". printf("CON. gotoxy(5.6). gotoxy(45.printf("ADDRESS:"). gets(cus. puts(cus.con). printf("DO YOU WANT TO MODIFY THIS RECORD:"). printf("PHONE NO. printf("ENTER ADDRESS:"). gotoxy(5.aaddress). gets(cus. printf("CONSIGNMENT MODIFICATION"). gets(cus.:%ld".13). puts(cus.&choice).cus. printf("CITY:").15).address). . gotoxy(45. IS:%d". gotoxy(22. gets(cus.cname). NO.13).5). if (choice=='y'||choice=='Y') { clrscr().city). gotoxy(25.5).acity).6). gotoxy(5. gotoxy(5. printf("ENTER SENDER'S NAME/DEPT. printf("ENTER CITY:").

&cus. printf("ENTER PHONE NO. printf("ENTER CONSIGNMENT TYPE:[L/P]:").yyyy). printf("ENTER ADDRESS:").:").cus.teleno). scanf("%f". gotoxy(5.8).cus. printf("ENTER ADDRESSEE'S NAME:").cus.aname).13).amt). gotoxy(40. gotoxy(50. gotoxy(50.9).wt). gotoxy(40. gotoxy(40.aname).8).min. gotoxy(5. printf("ENTER CITY:").7).7). scanf("%s".9). printf("ENTER AMOUNT:"). . scanf("%ld".cus.12). printf("TIME IS:[HH:MM:SS]:%d:%d:%d". gotoxy(5. printf("DATE IS:[DD MM YYYY]:%d %d %d". gotoxy(5.acity).gotoxy(5.&cus. gets(cus. gets(cus.aaddress). scanf("%f".mm.hour.&cus.dd.cus.13).type).12).&cus.cus.sec). printf("ENTER WEIGHT:"). gets(cus. gets(cus.

-141.:").ateleno).15).dat".sizeof(cus). 100/."rb+"). printf("INFORMATION CORRECT:[Y/N]:").1.&cus. gotoxy(10.15).mas).sizeof(cusm). .1.fs).SEEK_CUR). getch().printf("ENTER PHONE NO. while(fread(&cusm.1. if (ch=='y'||ch=='Y') { fseek(fs.17). mas=fopen("addmas.mas)) if (cusm.SEEK_CUR).sizeof(cus). fwrite(&cus. printf("THIS CONSIGNMENT NUMBER DOESN'T EXIST OR DELIVERED"). } } } } } if (p==0) { gotoxy(10. fwrite(&cus. scanf("%s".Only"). gotoxy(5. printf("Our Liability For Any Loss Or Damage To The Shipment Is Only Rs.-141.conno==con) { fseek(mas.&ch). scanf("%ld".

fclose(mas). scanf("%s". } .20). printf("MODIFY MORE ENTRY:").} fclose(fs). } return(0). gotoxy(20.&count).

p.aname[20].ateleno.h> co33main() { FILE *mas.sec.dat"."rb"). printf("CONSIGNMENT DELETION").*temas.mm.*fs. int dd.h> #include<dos. char cname[20].city[15].aaddress[20]. gotoxy(5.h> #include<conio.4). float wt.//customer deletion #include<stdio. scanf("%d". long int teleno.min.*ssf. p=0. printf("ENTER CONSIGNMENT NUMBER:"). int con. } cus.choice. fs=fopen("add1.&con).cusm. gotoxy(25. while(count=='y'||count=='Y') { clrscr().2). . struct cust { int conno. char count='y'.hour.amt.yyyy.acity[15].address[20].type.

type).cus.yyyy).8). printf("WEIGHT:%f".1.fs)) if (cus. printf("SENDER'S NAME/DEPT.hour. puts(cus.amt).while(fread(&cus.6). gotoxy(40.10). printf("ADDRESS:").8). gotoxy(5.12). puts(cus.cus.cus.10).:"). gotoxy(5.cus. printf("AMOUNT:%f". printf("PHONE NO.7).:%ld".conno==con) { p++.cus. printf("TIME IS:[HH:MM:SS]:%d:%d:%d".address).min. gotoxy(5.sec). gotoxy(40. gotoxy(5.mm. puts(cus. .teleno).cus. gotoxy(40. gotoxy(5.9). printf("DATE IS:[DD MM YYYY]:%d %d %d".cus.9). gotoxy(40.wt).dd. printf("CONSIGNMENT TYPE:[L/P]:%c".cus.sizeof(cus). printf("CITY:").city).7).cname). gotoxy(5.cus. printf("ADDRESSEE'S NAME:").cus.

13). temas=fopen("tempmas.15). } else { printf("DO YOU WANT TO DELETE THIS RECORD:").acity). printf("ADDRESS:").12).mas)) if (cusm.dat". gotoxy(50. printf("PHONE NO."ab"). gotoxy(5. printf("THIS CONSIGNMENT NUMBER DOESN'T EXIST OR DELIVERED").sizeof(cusm).dat". gotoxy(50.ateleno)."rb+"). scanf("%s". printf("CITY:").1.puts(cus. gotoxy(5.&choice).15).:%ld". } fclose(fs). puts(cus. if (p==0) { gotoxy(10. while(fread(&cusm.13). puts(cus.aname).aaddress).cus. if (choice=='y'||choice=='Y') { mas=fopen("addmas.conno!=con) .

dat").20).dat").dat")."rb").conno!=con) fwrite(&cus.dat"."addmas. while(fread(&cus. fclose(mas).dat".sizeof(cus). fclose(ssf).temas). return(0).sizeof(cus). } ."add1. remove("add1.1.fs)) if (cus.1. ssf=fopen("temp. fs=fopen("add1.1. printf("DELETE MORE ENTRY:"). remove("addmas.dat"). rename("temp.fwrite(&cusm. fclose(fs). fclose(temas).dat")."ab").dat". scanf("%s". } else remove("temp.&count).ssf).sizeof(cusm). } getch().dat". } gotoxy(20. rename("tempmas.

int dd.4). .type."rb").amt. struct cust { int conno.aname[20].ateleno.mm. printf("ENTER CONSIGNMENT NUMBER:"). long int teleno.hour. int con.&con).yyyy. float wt. printf("ENQUIRY SINGLE CONSIGNMENT"). } cus. char count='y'. scanf("%d".acity[15]. fs=fopen("add1.sec.city[15].dat".h> co41main() { FILE *fs.aaddress[20]. gotoxy(25.p. gotoxy(5. p=0.h> #include<dos. while(count=='y'||count=='Y') { clrscr(). char cname[20].2).h> #include<conio.address[20].//customer enquiry single #include<stdio.min.

puts(cus.:%ld".while(fread(&cus. printf("PHONE NO.sizeof(cus).9).conno==con) { p++.10).min. printf("AMOUNT:%f".:").sec). puts(cus.12). printf("SENDER'S NAME/DEPT. .hour. gotoxy(40.mm.cus. gotoxy(5. printf("CITY:").fs)) { if (cus.cus.7).cname).6).7). puts(cus.cus.wt).cus.dd.8). printf("DATE IS:[DD MM YYYY]:%d %d %d".type). gotoxy(5.8).cus. printf("TIME IS:[HH:MM:SS]:%d:%d:%d". gotoxy(40.cus. gotoxy(5. gotoxy(40.cus. printf("WEIGHT:%f".address).cus. gotoxy(5.1.cus. printf("ADDRESS:"). printf("CONSIGNMENT TYPE:[L/P]:%c".cus.10). gotoxy(5.city).amt). gotoxy(5. gotoxy(40.9).teleno).yyyy).

20). scanf("%s". } getch(). puts(cus. gotoxy(5. printf("CITY:"). puts(cus. puts(cus. } . gotoxy(50.12).13).&count). printf("ADDRESS:"). printf("PHONE NO. } gotoxy(20.acity).aname).aaddress). return(0). gotoxy(50.15). gotoxy(5. if (p==0) { gotoxy(10.cus.printf("ADDRESSEE'S NAME:"). printf("ENQUIRY MORE ENTRY:").13).ateleno). } } fclose(fs).:%ld".15). printf("THIS CONSIGNMENT NUMBER DOESN'T EXIST").

gotoxy(28.min.address[20]. printf("ADDRESS & CITY").h> #include<conio. fs=fopen("addmas.ateleno.5).city[15]."rb"). gotoxy(6.aname[20]. clrscr(). gotoxy(1.aaddress[20].hour.amt.5).5). struct cust { int conno.//report of total consignment #include<stdio.acity[15]. float wt. gotoxy(5. gotoxy(28.type. char cname[20]. } cus.dat". printf("SEN_NAME"). int p.sec. printf("SRNO").h> #include<dos. .6).yyyy. printf("REPORT OF TOTAL CONSIGNMENT").3). long int teleno.mm.h> co42main() { FILE *fs. int dd.

p+2). printf("TYPE").p).5).p).1.conno).cus. gotoxy(40. printf("%d".address). printf("%ld".cus.p).5). gotoxy(40.p). gotoxy(49. gotoxy(5. printf("DATE"). gotoxy(35.5). printf("ADD_NAME").fs)) { gotoxy(1. . printf("%c". printf("PHNO").cname).5).p+1).printf("PHNO"). gotoxy(6. gotoxy(50.teleno). puts(cus. p=8.city).cus.6). gotoxy(28. puts(cus. printf("ADDRESS & CITY"). puts(cus. gotoxy(5.type).p). while(fread(&cus. gotoxy(35. gotoxy(72.sizeof(cus).

printf("%d-%d-%d". gotoxy(1.3). gotoxy(49. printf("REPORT OF TOTAL CONSIGNMENT"). if (p>=23) { p=8. printf("PHNO").cus. gotoxy(28. getch(). gotoxy(49. gotoxy(5.cus.p+1). printf("SRNO"). printf("%ld". gotoxy(50.5). puts(cus.p+2).ateleno).cus.aaddress). gotoxy(35.acity). printf("ADDRESS & CITY").5). clrscr().mm. printf("TYPE"). . gotoxy(6. gotoxy(72.5). printf("SEN_NAME"). puts(cus.5).6). puts(cus.p).cus.aname).yyyy). p=p+4.p).dd. gotoxy(28.

gotoxy(50.6). gotoxy(72. printf("ADDRESS & CITY"). gotoxy(49.5). printf("ADD_NAME").gotoxy(40. printf("PHNO").5). getch(). } . } } fclose(fs). printf("DATE").5). return(0).

hour."rb").5). struct cust { int conno.type. char cname[20].aaddress[20].yyyy. clrscr().amt.h> #include<conio. .ateleno. gotoxy(1. gotoxy(5.h> #include<dos.min.6). } cus.city[15].5). gotoxy(20. printf("SRNO").acity[15].3).aname[20]. fs=fopen("add1.sec. printf("ADDRESS & CITY"). gotoxy(28. float wt. long int teleno. printf("REPORT OF TOTAL CONSIGNMENT(NON-DELIVERED) ").dat".5). printf("SEN_NAME"). int dd.//report of non-delivered consignment #include<stdio.address[20]. int p.mm. gotoxy(6.h> co43main() { FILE *fs.

gotoxy(5.p+2).p).5).5).p). gotoxy(49.p+1).cus.type). printf("ADD_NAME").p).sizeof(cus). printf("%c". puts(cus.conno).cus. printf("%ld".5).address). gotoxy(50. gotoxy(35. printf("%d". puts(cus. .cname).6). printf("TYPE").teleno). gotoxy(5.1. printf("DATE"). gotoxy(35. while(fread(&cus.cus. puts(cus. gotoxy(28.printf("PHNO"). gotoxy(40.city).fs)) { gotoxy(1. p=8.p). gotoxy(72.5). gotoxy(6.p). printf("ADDRESS & CITY"). printf("PHNO"). gotoxy(40.

6).ateleno). printf("SEN_NAME"). gotoxy(72. .cus.cus.yyyy). puts(cus. printf("SRNO").3). gotoxy(1. printf("%ld".p).p+2). gotoxy(35. p=p+4.cus. gotoxy(28.acity). gotoxy(49. clrscr(). printf("REPORT OF TOTAL CONSIGNMENT(non-delivered)"). gotoxy(6. getch().5). if (p>=23) { p=8.mm. gotoxy(50. gotoxy(5.dd. gotoxy(20.p). gotoxy(49.p+1). printf("ADDRESS & CITY"). printf("TYPE"). printf("PHNO").cus.5). puts(cus. puts(cus.5).5).printf("%d-%d-%d".aname).aaddress).

getch(). gotoxy(49. } . return(0). gotoxy(72. } } fclose(fs). printf("DATE"). gotoxy(50.5). printf("PHNO").6). printf("ADD_NAME").5).gotoxy(40.5). printf("ADDRESS & CITY").

h> #include<conio. struct cust { int conno. char cname[20]. printf("SRNO"). int p.type.3).6).h> #include<dos. } cus.5). int dd.acity[15].dat". gotoxy(28.ateleno. clrscr().min. . printf("SEN_NAME"). float wt.aname[20].mm. gotoxy(20. gotoxy(6. gotoxy(1. printf("REPORT OF TOTAL CONSIGNMENT(DELIVERED)").yyyy. gotoxy(5."rb").h> co44main() { FILE *ds. ds=fopen("deladd.5).address[20].amt.hour.aaddress[20].sec.city[15]. printf("ADDRESS & CITY"). long int teleno.5).//report of total delivered consignment #include<stdio.

conno).city).printf("PHNO").sizeof(cus). . gotoxy(6. p=8.p+1). gotoxy(50. gotoxy(40. gotoxy(35. printf("TYPE"). printf("DATE"). printf("%d". gotoxy(5. puts(cus.address).p).5).5). while(fread(&cus.p).cus. printf("ADDRESS & CITY").p+2). puts(cus.p).5). printf("%ld". printf("ADD_NAME").cus.6).ds)) { gotoxy(1.teleno).1.cus. gotoxy(49. printf("PHNO"). gotoxy(40. puts(cus.type). gotoxy(28. printf("%c". gotoxy(5.cname).p). gotoxy(35. gotoxy(72.5).p).

printf("REPORT OF TOTAL CONSIGNMENT(DELIVERED)"). printf("SRNO").ateleno).cus. gotoxy(6.cus. clrscr().p).p+1). printf("%ld". gotoxy(72. puts(cus. gotoxy(49. printf("TYPE"). gotoxy(50.yyyy).cus.dd.3). gotoxy(1.5). gotoxy(20. p=p+4. printf("PHNO").printf("%d-%d-%d".6). printf("SEN_NAME").5). gotoxy(49.5). if (p>=23) { p=8. puts(cus.mm. getch().5).cus. gotoxy(35.p).p+2). gotoxy(5.aname). .aaddress). puts(cus. gotoxy(28.acity). printf("ADDRESS & CITY").

gotoxy(40.5). return(0).5). gotoxy(49. printf("PHNO"). printf("DATE"). getch(). printf("ADDRESS & CITY"). } } fclose(ds).6). gotoxy(50. printf("ADD_NAME"). gotoxy(72.5). } .

h> #include<conio.temp).#include<stdio.sizeof(sn).h> main() { FILE *temp.1. fclose(temp)."wb"). temp=fopen("courcode". } . fwrite(&sn. int sn=100.

:-CONSIGNMENT DELIVERY 4. OUTPUTS AND REPORTS =========MAIN MENU========= 1.:-QUIT MENU SELECT ANY ONE: ENTER YOUR CHOICE: .:-REPORT MENU 3.:-CONSIGNMENT MENU 2.

:MODIFICATION OF CONSIGNMENT 3.CONSIGNMENT MENU 1.:ADDITION OF CONSIGNMENT 2.:EXIT TO MAIN MENU SELECT ANY ONE: .:DELETION OF CONSIGNMENT 4.

CONSIGNMENT ADDITION CON. IS:104 ENTER SENDER'S NAME/DEPT. NO.:20280 ENTER CONSIGNMENT TYPE:[L/P]:l DATE IS:[DD MM YYYY]:27 2 2007 ENTER AMOUNT:30 ENTER WEIGHT:15 TIME IS:[HH:MM:SS]:10:4:28 ENTER ADDRESSEE'S NAME:sumit ENTER CITY:jagadhri ENTER ADDRESS:254.Only INFORMATION CORRECT:[Y/N]:y .cvt ENTER PHONE NO. 100/.:20345 Our Liability For Any Loss Or Damage To The Shipment Is Only Rs.mt ENTER CITY:ynr ENTER PHONE NO.:sanjay ENTER ADDRESS:234.

:20280 CONSIGNMENT TYPE:[L/P]:l DATE IS:[DD MM YYYY]:27 2 2007 AMOUNT:30.cvt PHONE NO.mt CITY:ynr PHONE NO.:20345 DO YOU WANT TO DELETE THIS RECORD:y DELETE MORE ENTRY:n .000000 TIME IS:[HH:MM:SS]:10:4:28 ADDRESSEE'S NAME:sumit CITY:jagadhri ADDRESS:254.000000 WEIGHT:15.CONSIGNMENT DELETION ENTER CONSIGNMENT NUMBER:104 SENDER'S NAME/DEPT.:sanjay ADDRESS:234.

REPORT MENU 1.:SINGLE CONSIGNMENT ENQUIRY 2.:EXIT TO MAIN MENU SELECT ANY ONE: .:NON-DELIVERED CONSIGNMENT METHOD 5.:TOTAL CONSIGNMENT REPORT 3.:DELIVERED CONSIGNMENT REPORT 4.

sugarmill PHONE NO.mt CITY:ynr PHONE NO.000000 WEIGHT:2.:amit ADDRESS:24.ENQUIRY SINGLE CONSIGNMENT ENTER CONSIGNMENT NUMBER:103 SENDER'S NAME/DEPT.:229067 ENQUIRY MORE ENTRY:n .000000 TIME IS:[HH:MM:SS]:11:19:18 ADDRESSEE'S NAME:sachin CITY:ynr ADDRESS:256.:222022 CONSIGNMENT TYPE:[L/P]:l DATE IS:[DD MM YYYY]:26 1 2007 AMOUNT:20.

huda jagadhri 27-1-2007 m.ashoknagar ludhiyana PHNO 32516 20675 l 24648 .bansal 167-t.c.l.gupta 123.REPORT OF TOTAL CONSIGNMENT SRNO SEN_NAME PHNO TYPE DATE ADD_NAME ADDRESS & CITY ADDRESS & CITY 101 amit 165.mt ynr 20280 l 27-1-2007 vivek 267.arogya ynr 102 s.

:amit ADDRESS:165.arogya CITY:ynr PHONE NO.:20280 CONSIGNMENT TYPE:[L/P]:l DATE IS:[DD MM YYYY]:27 1 2007 AMOUNT:25.000000 TIME IS:[HH:MM:SS]:10:15:42 ADDRESSEE'S NAME:vivek CITY:jagadhri ADDRESS:267.DELIVERY MENU ENTER CONSIGNMENT NUMBER:101 SENDER'S NAME/DEPT.:32516 CONSIGNMENT DELIVERED :[INFORMATION CORRECT:y DELIVER MORE ENTRY:n .000000 WEIGHT:24.huda PHONE NO.

huda jagadhri PHNO 32516 .REPORT OF TOTAL CONSIGNMENT(DELIVERED) SRNO SEN_NAME PHNO TYPE DATE ADD_NAME ADDRESS & CITY ADDRESS & CITY 101 amit 165.arogya ynr 20280 l 27-1-2007 vivek 267.

REPORT OF TOTAL CONSIGNMENT(NON-DELIVERED) SRNO SEN_NAME ADDRESS & CITY 102 s.gupta 123.bansal 167-t.ashoknagar ludhiyana 24648 .mt ynr PHNO TYPE DATE ADD_NAME ADDRESS & CITY PHNO 20675 l 27-1-2007 m.l.c.

Sign up to vote on this title
UsefulNot useful