Professional Documents
Culture Documents
Visvesvaraya Technological University: Jss Academy of Technical Education
Visvesvaraya Technological University: Jss Academy of Technical Education
BACHELOR OF ENGINEERING
IN
INFORMATION SCIENCE AND ENGINEERING
For the Academic Year 2020-2021
Submitted by
Rakshitha R 1JS19IS414
CERTIFICATE
This is to certify that the project work entitled “Canteen Management System” is a bonafide work carried
out by Banashree S Dalawai [1JS19IS401]in partial fulfillment for the File Structure Laboratory with Mini
Project (18CSL63) of 6th Semester Bachelor of Engineering in Information Science and Engineering of
Visvesvaraya Technological University Belagavi during the year 2020- 2021. It is certified that all
corrections and suggestions have been incorporated in the report deposited in the department library.
1.
2.
ACKNOWLEDGEMENT
The satisfaction and euphoria that accompany the successful completion of any
task would be incomplete without the mention of the people who made it
possible. So with gratitude, we acknowledge all those whose guidance and
encouragement crowned my effort with success.
First and foremost, we would like to thank his Holiness Jagadguru Sri
Shivarathri Deshikendra Mahaswamiji and Dr. Mrityunjaya V Latte,
Principal, JSSATE, Bangalore for providing an opportunity to carry out the
Project Work as a part of our curriculum in the partial fulfilment of the degree
course.
We express our sincere gratitude for our beloved Head of the department, Dr.
REKHA PM , for her co-operation and encouragement at all the moments of our
approach.
It is our pleasant duty to place on record our deepest sense of gratitude to our
respected guide Mrs.Punitha M, Associate Professor for the constant
encouragement, valuable help and assistance in every possible way.
We are thankful to the Project Coordinators Mrs.Punitha M Associate. Professor
and for their continuous co- operation and support.
We would like to thank all ISE Department Teachers, non-teaching staff and
Library staff for providing us with their valuable guidance and for being there at
all stages of our work.
Acknowledgement 3
Abstract 4
INTRODUCTION
CHAPTER-1
1.1 Introduction File Structure
1.2 Project introduction
This project includes some facilities of customers and products search, display, modification, delete
etc. This software searches the client data which is store in the record and then gives permission to
place the order by the customer. The software used for small scale canteens which have limited
customers and products and wants to maintain the records.It generates invoice that is inclusive of all
taxes (Set as per GST, India). It also provides user authentication option
1.3 Objectives
CHAPTER-2
2.1 C++
2.2 Functional Requirements
CHAPTER-3
PSEUDO CODE
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
#include<iostream>
#include<conio.h>
#include<stdlib.h>
#include<fstream>
#include<cctype>
#include<iomanip>
#include<vector>
using namespace std;
//***************************************************************
// function declaration
//****************************************************************
void write_account(); //function to write record in binary file
void display_all(); //function to display all account details
void all_items(); //function to display all items
void intro(); //introductory screen function
void add_item();//add item in the item list
void edit_item(); //edit item in list
void delete_item(); //delete item in item list
struct Items
{
string itemname;
int price;
};
vector<Items> item;
//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************
class account
{
int age;
char name[50];
char type;
int total=0;
public:
void create_account();//function to get data from user
void show_account() const; //function to show data on screen
void report() const; //function to show data in tabular format
}; //class ends here
void account::create_account()
{
int i=1,x=1;
cout<<"\n\nEnter The Name of customer : ";
cin.ignore();
cin.getline(name,50);
cout<<"\nEnter The age :";
cin>>age;
cout<<"\nEnter gender of customer (m/f) : ";
cin>>type;
type=toupper(type);
cout<<"\n\n\n Customer Created.."<<endl<<endl;
all_items();
cout<<endl;
while(1)
{
cout<<"press 0 to submit"<<endl<<endl;
cout<<"enter the item id you want to purchase"<<endl;
if(i<=item.size())
{
cin>>i;
if(i==0)
break;
cout<<"enter the number of quantity you want of that item"<<endl;
cin>>x;
total=total+(item[i-1].price*x);
}
else
cout<<"invalid entry"<<endl;
}
cout<<"your bill is "<<total<<endl;
}
void account::show_account() const
{
cout<<"\nAge : "<<age;
cout<<"\ncustomer Name : ";
cout<<name;
cout<<"\ngender of customer : "<<type;
}
//***************************************************************
// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
int main()
{
char ch;
item.push_back({"chips",20});
item.push_back({"kurkure",50});
intro();
do
{
system("cls");
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t01. NEW CUSTOMER";
cout<<"\n\n\t02. ALL ITEMS";
cout<<"\n\n\t03. ADD NEW ITEMS";
cout<<"\n\n\t04. EDIT ITEM";
cout<<"\n\n\t05. ALL CUSTOMERS LIST";
cout<<"\n\n\t06. DELETE ITEM";
cout<<"\n\n\t07. EXIT";
cout<<"\n\n\tSelect Your Option (1-7) ";
cin>>ch;
system("cls");
switch(ch)
{
case '1':
write_account();
break;
case '2':
all_items();
break;
case '3':
add_item();
break;
case '4':
edit_item();
break;
case '5':
display_all();
break;
case '6':
delete_item();
break;
case '7':
cout<<"\n\n\tThanks for using canteen management system";
break;
default :cout<<"\a";
}
cin.ignore();
cin.get();
}while(ch!='7');
return 0;
}
//***************************************************************
// function to write in file
//****************************************************************
void write_account()
{
account ac;
ofstream outFile;
outFile.open("account.dat",ios::binary|ios::app);
ac.create_account();
outFile.write(reinterpret_cast<char *> (&ac), sizeof(account));
outFile.close();
}
//***************************************************************
// function to display all items
//****************************************************************
void all_items()
{
int i=0;
cout<<"item id"<<"\t"<<"itemname"<<"\t"<<"price"<<endl<<endl;
for(i=0;i<item.size();i++)
{
cout<<i+1<<"\t"<<item[i].itemname<<"\t\t"<<item[i].price<<endl;
}
//***************************************************************
// function to modify record of file
//****************************************************************
void add_item()
{
string a;
int b;
cout<<"enter the item name"<<endl;
cin>>a;
cout<<"enter the item price"<<endl;
cin>>b;
item.push_back({a,b});
cout<<"item added successfully"<<endl<<endl;
all_items();
}
//***************************************************************
// function to edit item in list
//****************************************************************
void edit_item()
{
int j;
cout<<"enter the id of item"<<endl;
cin>>j;
if(j<=item.size()){
cout<<"enter the item name"<<endl;
cin>>item[j-1].itemname;
cout<<"enter the item price"<<endl;
cin>>item[j-1].price;
cout<<endl<<"item edited successfully"<<endl;
}
else
{
cout<<"invalid entry";
}
}
void delete_item()
{
int j;
cout<<"enter the id of item"<<endl;
cin>>j;
if(j<=item.size()){
item.erase(item.begin()+j-1);
cout<<endl<<"item deleted successfully"<<endl;
}
else
{
cout<<"invalid entry";
}
}
//***************************************************************
// function to display all customers bill list
//****************************************************************
void display_all()
{
account ac;
ifstream inFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
cout<<"\n\n\t\tCUSTOMER LIST\n\n";
cout<<"====================================================\n";
cout<<"Age NAME Type Bill\n";
cout<<"====================================================\n";
while(inFile.read(reinterpret_cast<char *> (&ac), sizeof(account)))
{
ac.report();
}
inFile.close();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{
cout<<"\n\n\n\t CANTEEN MANAGEMENT SYSTEM\n\n\n\t";
cin.get();
}
OUTPUT SCREENSHOTS:
CONCLUSION
“Payroll Management System” software developed for a company has been designed
to achieve maximum efficiency and reduce the time taken to handle the payroll activity.
It is designed to replace an existing manual record system thereby reducing time taken
for calculations and for storing data. The system uses Xampp, MYSQL as a backend for
the database.
The system is strong enough to withdraw regressive daily operation under condition
where the database is maintained and cleared over a certain time of span. The
implementation of the system in the organization will considerately reduce data entry,
time and also provide calculated reports.
Chapter 7
Reference
➢https://github.com/
➢https://www.geeksforgeeks.org/
➢https://www.stackoverflow.org/