Store Management Ystem
Store Management Ystem
Store Management Ystem
“Employee Slip”
is done by
Vishal Jagdale,
Santosh Gonkar,
Ashish Bhoir
is submitted for
for
the diploma
in
1. INTRODUCTION
We have learned to implement a C++ program to manage employees slip by using
different features of OOP (function, structure, For loop, If-else, Switch case, While Loop)
3. ACTION PLAN
4. RESOURCE REQUIRED
6. SKILL DEVELOPED
Learned to implement a C program using various graphics objects.
Program Code:
#include<iostream.h>
#include<conio.h>
class dept
{
int amount[m],pris[m],k,a,b,amount1;
int code,code1,cod[m],s,last;
public:
float price,price1;
dept(void);
void sell(void);
void total_items(void);
void add_old(void);
void add_new(void);
void show(void);
};
dept:: dept(void)
{ s=0;a=10;b=40;last=5;amount[0]=0;
for(int k=0;k<last;k++)
{ s=s+1;b=b+10;
cod[k]=s;
amount[k]=a;
pris[k]=b;
}
void dept::add_old(void)
cin>>code1;
cin>>price1;
for(k=0;k<last;k++)
{ if(code1==cod[k])
{ a=a+1;
amount[k]=a;
pris[k]=price1;
// else
void dept::add_new(void)
cin>>code1;
cin>>amount1;
cod[last]=code1;
amount[last]=amount1;
pris[last]=price1;
last++;
void dept::show(void)
{ for(k=0;k<last;k++)
cout<<"\nCODE:"<<cod[k]<<"\t";
cout<<"\nAMOUNT:"<<amount[k]<<"\t";
cout<<"\nPRICE:"<<pris[k]<<endl;
void dept::sell(void)
cin>>code;
cin>>price;
}
void dept::total_items(void)
int main()
dept d[10];
int x,i=0,p,s=0;
clrscr();
do{
cout<<"\n7. Quit";
cin>>x;
switch(x)
{ case 1: d[i].show();
break;
case 2: d[i].add_old();
d[i].show();
break;
case 3: d[i].add_new();
d[i].show();
break;
case 4: d[i].sell();
i++,j++;
break;
s=0;
for(p=0;p<j;p++)
{ s=s+d[p].price;
cout<<s;
cout<<"TK.\n";
}
break;
case 6: for(i=0;i<j;i++)
{ d[i].total_items();
break;
case 7: break;
} while(x!=7);
getch();
return 0;
8. Output:
Entering choice no 1 :-
Entering choice no 2 :-
Performing 2no choice after performing 2 no choice
Entering choice no 3 :-
10.Conclusion