Monday, January 24, 2011

MEDICAL SHOP MANAGEMENT

SOURCE CODE


HEADER

#include

#include

#include

#include

#include

#include

#include

main()

{

clrscr();

unsigned int sum,add,d,i,j,e,f,g,h,k,l,w,x,y,z;

unsigned int bir=10,per=36,der=110,mur=8,par=110,cor=90,twr=1199, lur=17,tir=107,

rer=1499;

int qubis=1000,abis=0,qupep=1000,apep=0,quden=110,aden=0,qumun=1000,amun=0,quperk=500,aperk=0,qucoc=400,acoc=0,qutit=100,atit=0,qulux=1000,alux=0,qutid=1000,atid=0,quree=300,aree=0;

unsigned int m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;

char name[50],rank[10],pu,c[20],a[15],b[15],ok;

clrscr();

printf("\n +++++++++++++++++++++++++++++++++++++++*++++++++++++++++++++++++++++++++++++++");

printf("\n + *** +");

printf("\n + ***** +");

printf("\n + ******* +");

printf("\n + ********* +");

printf("\n + *********** +");

printf("\n + ************* +");

printf("\n + *************** +");

printf("\n + ***************** +");

printf("\n + ******************* +");

printf("\n + ********************* +");

printf("\n + *********************** +");

printf("\n + ************************* +");

printf("\n + *************************** +");

printf("\n + ***************************** +");

printf("\n + ******************************* +");

printf("\n + ********************************* +");

printf("\n + *********************************** +");

printf("\n + ************************************* +");

printf("\n + *************************************** +");

printf("\n + ***************************************** +");

printf("\n + ******************************************* +");

printf("\n + ********************************************* +");

printf("\n + *********************************************** +");

printf("\n + ************************************************* +");

printf("\n + *********************WELCOME*********************** +");

printf("\n + ************************************************* +");

printf("\n + *********************************************** +");

printf("\n + ********************************************* +");

printf("\n + ******************************************* +");

printf("\n + *************************************** +");

printf("\n + ************************************* +");

printf("\n + *********************************** +");

printf("\n + ********************************* +");

printf("\n + ******************************* +");

printf("\n + ***************************** +");

printf("\n + *************************** +");

printf("\n + ************************* +");

printf("\n + *********************** +");

printf("\n + ********************* +");

printf("\n + ******************* +");

printf("\n + ***************** +");

printf("\n + *************** +");

printf("\n + ************* +");

printf("\n + *********** +");

printf("\n + ********* +");

printf("\n + ******* +");

printf("\n + ***** +");

printf("\n + *** BY:- cbseportal.com +");

printf("\n +++++++++++++++++++++++++++++++++++++++*++++++++++++++++++++++++++++++++++++++");

getch();

clrscr();

cout<<"\n\n\t w w e e e e e e e e l ";

cout<<"\n\n\t w w w e l ";

cout<<"\n\n\t w w w w e l ";

cout<<"\n\n\t w w w w e e e e e e e e l ";

cout<<"\n\n\t w w w w e e e e e e e e l ";

cout<<"\n\n\t w w w w e l ";

cout<<"\n\n\t w w w w e l ";

cout<<"\n\n\t w w e e e e e e e e l l l l l l l l";

cout<<"\n\n\n\n c c c c c c c o o o o o o o m m e e e e e e e e ";

cout<<"\n\n c o o m m m m e ";

cout<<"\n\n c o o m m m m e ";

cout<<"\n\n c o o m m m m e e e e e e e e ";

cout<<"\n\n c o o m m m m e e e e e e e e ";

cout<<"\n\n c o o m m m m e ";

cout<<"\n\n c o o m m m m e ";

cout<<"\n\n c c c c c c c o o o o o o o m m m e e e e e e e e ";

getch();

clrscr();

main:;

cout<<"\n\n\n\t\t\t MEDICAL SHOP MAINTAINANCE SYSTEM";

cout<<"\n\n\nCONSUMER INFORMATION";

cout<<"\n\n\n\n NAME:";

gets(name);

cout<<"\n RANK:";

gets(rank);

cout<<"\n SERVICE NO.:";

cin>>a;

cout<<"\n SMART CARD NO.:";

cin>>b;

cout<<"\n PHONE NO.:";

cin>>c;

cout<<"\n ENTER BILL NO.:";

cin>>i;

again:;

clrscr();

cout<<"\n\n\n\n\1.MENU & PURCHASE";

cout<<"\n\n\n\2.DETAILS";

cout<<"\n\n\n\3.NEW CUSTOMER";

cout<<"\n\n\n\4.QUANTITY AVAILABLE";

cout<<"\n\n\n\5.EXIT";

cout<<"\n\n\nENTER YOUR CHOICE:";

cin>>d;

clrscr();

switch(d)

{

case 1:

cout<<"\nITEMS\t\t\t\t\t\t\t RATE(RS)";

cout<<"\n\n\nPARACETAMOL\t\t\t\t\t\t\t\t10 ";

cout<<"\n\nSARIDON\t\t\t\t\t\t\t36";

cout<<"\n\nLIVER TONIC\t\t\t\t\t\t\t110 ";

cout<<"\n\nDISPRINE\t\t\t\t\t\t\t\t8 ";

cout<<"\n\nGLAZINM\t\t\t\t\t\t110 ";

cout<<"\n\nCORVADIL A\t\t\t\t\t\t90 ";

cout<<"\n\nTAGRITOL CR200\t\t\t\t\t\t\t1199 ";

cout<<"\n\nINTOCONEL\t\t\t\t\t\t\t17 ";

cout<<"\n\nCHLORHEXIDINE MOUTHWASH\t\t\t\t\t\t\t\t107 ";

cout<<"\n\nINSULIN INJECTION\t\t\t\t\t\t\t1499 ";

start:

cout<<"\n\n\nDO YOU WANT TO PURCHASE(Y/N):\n";

cin>>pu;

if(pu=='Y'||pu=='y')

{switch(pu)

case 1:

clrscr();

cout<<"\n\n\n\t\t\t\tPURCHASE LIST";

bis:;

cout<<"\nPARACETAMOL(MAX 30): ";

cin>>m;

if(m>30)

{

cout<<"Enter Quantity Smaller than 30";

getch();

goto bis;

}

else

abis=qubis-m;

pep:;

cout<<"\nPEPSODENT(MAX 2): ";

cin>>n;

if(n>2)

{

cout<<"Enter Quantity Smaller than 2";

getch();

goto pep;

}

else

apep=qupep-n;

den:;

cout<<"\nDENIM POWDER(MAX 2): ";

cin>>o;

if(o>2)

{

cout<<"Enter Quantity Smaller then 2";

getch();

goto den;

}

else

aden=quden-o;

mun:;

cout<<"\nMUNCH(MAX 50): ";

cin>>p;

if(p>50)

{

cout<<"Enter Quantity Smaller then 50";

getch();

goto mun;

}

else

amun=qumun-p;

park:;

cout<<"\nPARK AVENUE PERFUME(MAX 2): ";

cin>>q;

if(q>2)

{

cout<<"Enter Quantity Smaller then 2";

getch();

goto park;

}

else

aperk=quperk-q;

coco:;

cout<<"\nCOCONUT HAIR OIL(MAX 2): ";

cin>>r;

if(r>2)

{

cout<<"Enter Quantity Smaller then 2";

getch();

goto coco;

}

else

acoc=qucoc-r;

titan:;

cout<<"\nTITAN WATCH(MAX 2): ";

cin>>s;

if(s>2)

{

cout<<"Enter Quantity Smaller then 2";

getch();

goto titan;

}

else

atit=qutit-s;

lux:;

cout<<"\nLUX SOAP(MAX 10): ";

cin>>t;

if(t>10)

{

cout<<"Enter Quantity Smaller then 10";

getch();

goto lux;

}

else

alux=qulux-t;

tid:;

cout<<"\nTIDE(MAX 2): ";

cin>>u;

if(u>2)

{

cout<<"Enter Quantity Smaller then 2";

getch();

goto tid;

}

else

atid=qutid-u;

ree:;

cout<<"\nREEBOK SHOES(MAX 4): ";

cin>>v;

if(v>4)

{

cout<<"Enter Quantity Smaller then 4";

getch();

goto ree;

}

else

aree=quree-v;

cout<<"\n";

clrscr();

cout<<"\n\n\n\n\n\n\t\t\t\tAFFWA CANTEEN\n";

cout<<"\n\n\t\t\t\t CASH MEMO\n";

cout<<"\n\nBILL NO.:"<

cout<<"\n\nNAME:";

cout<

cout<<"\n\nRANK:"<

cout<<"\n\nSERVICE NO.:"<

cout<<"\n\nSMART CARD NO.:"<

cout<<"\n\nPHONE NO.:"<

cout<<"\n\n\n\n\n";

cout<<"===============================================================================";

cout<<"\nITEMS" <

cout<<"===============================================================================";

if(m>0)

cout<<"\n\nBISCUTE" <

if(n>0)

cout<<"\n\nPEPSODENT" <

if(o>0)

cout<<"\n\nDENIM POWDER" <

if(p>0)

cout<<"\n\nMUNCH" <

if(q>0)

cout<<"\n\nPARK AVENUE PERFUME"<

if(r>0)

cout<<"\n\nCOCONUT HAIR OIL" <

if(s>0)

cout<<"\n\nTITAN WATCH" <

if(t>0)

cout<<"\n\nLUX SOAP" <

if(u>0)

cout<<"\n\nTIDE" <

if(v>0)

cout<<"\n\nREEBOK SHOES" <

e=m*bir;

f=n*per;

g=o*der;

h=p*mur;

k=q*par;

l=r*cor;

w=s*twr;

x=t*lur;

y=u*tir;

z=v*rer;

sum=e+f+g+h+k+l+w+x+y+z;

add=m+n+o+p+q+r+s+t+u+v;

cout<<"\n===============================================================================";

cout<<"\nTOTAL:"<

cout<<"\n\nTHANK YOU .\t\t\t VISIT US AGAIN\n";

getch();

clrscr();

goto again;

}

else

{goto again;

}

case 2:

cout<<"\n\n\n\n\n\t\t\t\tCANTEEN DETAILS";

cout<<"\n\n#TIMING:\n\n 11 AM TO 02 PM \n 03 PM TO 05 PM";

cout<<"\n\n#CANTEEN WILL CLOSED ON TUESDAY";

cout<<"\n\n#GOODS ONCE SOLD WILL NOT BE EXCHANGED/REPLACED";

cout<<"\n\n#TAKE YOUR SMART CARD WITH YOU";

cout<<"\n\n#COLLECT YOUR SMART CARD & BILL AFTER PAYMENT";

cout<<"\n\n#DO NOT BREAK ANY CANTEEN ITEMS";

getch();

clrscr();

goto again;

case 3:

goto main;

case 4:

if(m>0||n>0||o>0||p>0||q>0||r>0||s>0||t>0||u>0||v>0)

{cout<<"\n\t\t\tItems Avaliable in Canteen.\n\n\n";

cout<<"===============================================================================";

cout<<"\nITEMS" <

cout<<"\n===============================================================================";

cout<<"\n\n\nBISCUTE" <

cout<<"\n\n\nPEPSODENT" <

cout<<"\n\n\nDENIM POWDER" <

cout<<"\n\n\nMUNCH" <

cout<<"\n\n\nPARK AVENUE PERFUME"<

cout<<"\n\n\nCOCONUT HAIR OIL" <

cout<<"\n\n\nTITAN WATCH" <

cout<<"\n\n\nLUX SOAP" <

cout<<"\n\n\nTIDE" <

cout<<"\n\n\nREEBOK SHOES" <

cout<<"\n*******************************************************************************";

getch();

goto again;

}

else

{{cout<<"\n\t\t\tItems Avaliable in Canteen.\n\n\n";

cout<<"===============================================================================";

cout<<"\nITEMS" <

cout<<"\n===============================================================================";

cout<<"\n\n\nBISCUTE" <

cout<<"\n\n\nPEPSODENT" <

cout<<"\n\n\nDENIM POWDER" <

cout<<"\n\n\nMUNCH" <

cout<<"\n\n\nPARK AVENUE PERFUME"<

cout<<"\n\n\nCOCONUT HAIR OIL" <

cout<<"\n\n\nTITAN WATCH" <

cout<<"\n\n\nLUX SOAP" <

cout<<"\n\n\nTIDE" <

cout<<"\n\n\nREEBOK SHOES" <

cout<<"\n\n*******************************************************************************";

getch();

goto again;

}

case 5:

cout<<"\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS";

sleep(1);

clrscr();

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t THANKS\n\n\n\t\t\t\tPress any key to Exit.......";

getch();

exit(0);

default:

cout<<"Your choice is wrong";

getch();

goto again;

}

//getch();

// return 0;

}

}


No comments:

Post a Comment