Professional Documents
Culture Documents
"Store Management System": A Micro Project Report On
"Store Management System": A Micro Project Report On
M.S.B.T.E.
Evolution sheet for Micro Project
Name and
Signatur MRS SANIYA
e of
faculty
MAULANA AZAD POLYTECHNIC , SOLAPUR
CERTIFICATE
This is a bonafide work carried out by above students, under the guidance of MRS SANIYA and it
is submitted towards the fulfillment of requirement of MSBTE, Mumbai for the award of Diploma
Computer Engineering at MAULANA AZAD POLYTECHNIC , SOLAPUR during the academic year
2023-2024.
( MRS SANIYA )
Guide
(Ms.Asma Tamboli) (Mr.S.N.Shaikh)
HOD Principal
Place: Solapur
Date: / /
Departmental Store Management Using C
Language
Introduction
This application has been modified to include functionality such as calculating, adding, examining
commodities, and more. The admin or user is kept up to date on the records with less effort, and it is
highly liked by those in the business world. Because we are aware of businesspeople's busy and
stressful schedules, this Departmental Store management system proves to be a fantastic relief for
them because it is simple to use. This application has a lot of potential for reducing billing mistakes and
shortening the time it takes to distribute invoices to clients. We don't have to worry about data loss
with this system, and we don't have to worry about it being damaged.
public:
void get();
void get2();
void show();
int stchk(char nm[30]);
void withd(int qty);
void refil(int qty);
}st;
void stock::withd(int qty)
{
if(quant>=qty)
{
quant-=qty;
cout<<"\n\nStock updated.\n";
cout<<"\n\nTotal price to be paid:"<<pr*qty;
}
else
cout<<"\n\nInsufficient stock";
getch();
quant+=qty;
cout<<"\n\nStock updated.";
getch();
}
int stock::stchk(char nm[30])
{
if(strcmp(nm,name)==0)
return 0;
else
return 1;
}
void stock::get()
{
cin>>name>>pr>>quant;
/*cout<<"\n\nEnter the password letter by letter\n";
for(int z=0;z<5;z++)
{
cin>>pass[z];
system("cls");
cout<<"\n\nEnter the password letter by letter\n";
for(i=1;i<=(z+1);i++)
{
cout<<"*";
}
}
if(strcmp(pass,"hello")==0)
{
cout<<"\nCongrats!!Access Granted!!\n\n";
cout<<"\nEnter the Name followed By the price and then by the quantity\n";
cin>>name>>pr>>quant;
}
else
cout<<"Access Denied!!";*/
}
void stock::get2()
{
cin>>name>>quant;
}
void stock::show()
{
cout<<"\n"<<name<<"\t\t\t"<<quant<<"\t\t\t"<<pr;
}
void addnew()
{
// cout<<"\n\n\nCongrats!!Access Granted!!\n\n";
system("cls");
//cout<<"\nEnter the Name followed By the price and then by the quantity\n";
disp();
getch();
system("cls");
if (n!=0)
{
int j,l,sum=0;
fout.open("shop.dat",ios::binary|ios::app);
for(i=0;i<n;i++)
{
/*if(i==0)
{
system("cls");
}*/
cout<<"\n\nInput the name, price and the quantity of item respectively\n\
n";
st.get();
fout.write((char*)&st,sizeof(st));
cout<<"\n\nitem updated";
cin.get();
}
cout<<"\n\nStock Updated!!";
fout.close();
cin.get();
system("cls");
disp();
}
else
{
fout.close();
cin.get();
system("cls");
cout<<"\n\nNo items to be added";
}
}
void withdraw()
{
system("cls");
char temp[100];int qty;
int i=0;
long pos=0;
disp();
cout<<"\n\nEnter the product's name \n"<<endl;
cin>>temp;
cout<<"\n\nEnter quantity: \n"<<endl;
cin>>qty;
fio.open("shop.dat",ios::binary|ios::out|ios::in);
while(fio)
{
pos=fio.tellp();
fio.read((char*)&st,sizeof(st));
if(st.stchk(temp)==0)
{
st.withd(qty);
fio.seekp(pos);
fio.write((char*)&st,sizeof(st));
i++;break;
}
}
if(i!=1)
cout<<"\n\n!!Record not found!!";
fio.close();
cin.get();
system("cls");
disp();
getch();
}
void disp()
{
int i=1;
cout<<"\n==================================================================";
cout<<"\n\n=================\tTHE STOCK ITEMS ARE\t==================";
cout<<"\n\n==================================================================\n";
cout<<"\n\nPARTICULARS\tSTOCK AVAILABLE\t\t\t PRICE";
cout<<"\n\n============================================================\n";
fin.open("shop.dat",ios::binary);
while(!fin.eof())
{
fin.read((char*)&st,sizeof(st));
if(!fin.eof())
{
if(fin.tellg()<0)
{ i=0; break;}
st.show();
}
}
if(i==0)
{ cout<<"\n\n\t\t\t!!Empty record room!!";
getch();
}
fin.close();
}
void refill()
{
system("cls");
char temp[100];int qty;
int i=0;
long pos=0;
disp();
cout<<"\n\nEnter the products name \n"<<endl;
cin>>temp;
cout<<"\n\nEnter quantity: \n"<<endl;
cin>>qty;
fio.open("shop.dat",ios::binary|ios::out|ios::in);
while(fio)
{
pos=fio.tellp();
fio.read((char*)&st,sizeof(st));
if(st.stchk(temp)==0)
{
st.refil(qty);
fio.seekp(pos);
fio.write((char*)&st,sizeof(st));
i++;break;
}
}
if(i!=1)
cout<<"\n\n!!Record not found!!";
fio.close();
system("cls");
cin.get();
disp(); cin.get();
}
void remove()
{
system("cls");
int i=0;
char temp[30];
cout<<"\n\t\t\t\tDelete Record";
cout<<"\n\nEnter the name of the product:";
cin>>temp;
fout.open("temp.dat",ios::binary);
fin.open("shop.dat",ios::binary);
while(!fin.eof())
{
fin.read((char*)&st,sizeof(st));
if(!fin.eof())
if(st.stchk(temp)==0)
{
st.show();
cout<<"\n\n\t\tRecord deleted";
i++;
}
else
fout.write((char*)&st,sizeof(st));
}
if(i==0)
cout<<"\n\n!!Record not found!!";
fin.close();
fout.close();
remove("shop.dat");
rename("temp.dat","shop.dat");
}
int main()
{
char pass[10],pass2[10];
int i,j;
cout<<"\n\n\n\n\n\n\n\n\n\n\n \t\t\t|============ WELCOME TO STORE MANAGEMENT
============|";
getch();
system("cls");
cout<<"\n\t\t STORE MANAGEMENT SYSTEM\n";
cout<<"=============================================================";
cout<<"\n\n\t\t 1. Dealer Menu\n\n\t\t 2. Customer Menu\n\n\t\t 3. Employee
Menu";
cout<<"\n\n=============================================================\n";
cout<<"\n\nEnter Your Choice:";
cin>>j;
if(j==1)
{
system("cls");
/*disp();
for(int z=0;z<6;z++)
{
pass[z]=getch();
system("cls");
cout<<"\n\n\n\n\n\n\n\t\t\t\t\tEnter the password letter by letter: ";
for(i=1;i<=(z+1);i++)
{
cout<<"*";
}
}
if(strcmp(pass,"dealer")==0)
{
/*cout<<"\n\n\nCongrats!!Access Granted!!\n\n";
getch();*/
system("cls");
dealermenu:
system("cls");
cout<<"=================================================================";
cout<<"\n\n\t\t\t DEALER MENU\n1. Add new product\n2. Display stock\n3.
Refill\n4. Remove an item\n5. Exit:";
cout<<"\n\n\n==========================END OF MENU=============================";
cout<<"\n\n Enter your Choice :\t";
cin>>i;
if(i==1)
{
addnew();getch();
goto dealermenu;
}
else if(i==2)
{
system("cls");
disp();getch();goto dealermenu;
}
else if(i==3)
{
refill();goto dealermenu;
}
else if(i==4)
{
remove();getch();goto dealermenu;
}
else
{
system("cls");
cout<<"\n\n\n\t\t\tBrought To You By code-projects.org";
getch();
exit(0);
}
}
else
{
cout<<"\n\n\nAuthorised Personnel Only\n\n";
getch();
getch();
getch();
getch();
getch();
getch();
exit(0);
}
}
if(j==2)
{
custmenu:
system("cls");
cout<<"=================================================================";
cout<<"\n\n\t\t\t CUSTOMER MENU\n1. Purchase\n2. Display stock\n3. Exit:";
cout<<"\n\n\n==========================END OF MENU=============================";
cout<<"\n\n Enter your Choice :\t";
cin>>i;
if (i==1)
{
withdraw();getch();goto custmenu;
}
else if(i==2)
{
system("cls");
disp();getch();goto custmenu;
}
else
{
system("cls");
cout<<"\n\n\n\t\t\tBrought To You By code-projects.org";
getch();
exit(0);
}
}
if(j==3)
{
system("cls");
cout<<"\n\n\n\n\n\n\n\t\t\t\t\tEnter the password letter by letter: ";
for(int z=0;z<3;z++)
{
pass2[z]=getch();
system("cls");
cout<<"\n\n\n\n\n\n\n\t\t\t\t\tEnter the password letter by letter: ";
for(i=1;i<=(z+1);i++)
{
cout<<"*";
}
}
if(strcmp(pass2,"emp")==0)
{
empmenu:
system("cls");
cout<<"=================================================================";
cout<<"\n\n\t\t\tEMPLOYEE MENU\n1. Display stock\n2. Refill\n3. Exit";
cout<<"\n\n\n==========================END OF MENU=============================";
cout<<"\n\n Enter your Choice :\t";
cin>>i;
if(i==1)
{
system("cls");
disp();getch();goto empmenu;
}
else if(i==2)
{
refill();goto empmenu;
}
else
{
system("cls");
cout<<"\n\n\n\t\t\tThank You!!";
getch();
exit(0);
}
}
else
{
cout<<"\n\nSorry!! Access Denied..\n\n";
getch();
getch();
getch();
getch();
getch();
exit(0);
}
}
getch();
Output:-
Features
Conclusion
In conclusion, the C programming language project for department store management was a success
that made it possible to operate a department shop effectively. The use of C made it possible to create
effective algorithms and data structure s, creating a system that is simple to use and efficient. The
project was able to perform many duties like customer information management, tracking sales, and
inventory management. Overall, the project showed how effective and efficient management systems
can be created using C as a powerful programming language.