Académique Documents
Professionnel Documents
Culture Documents
ON
INTERNATIONAL
RESTAURANT FOOD
LIST
GUIDED BY
SUBMITTED BY:
NILAY PARIKH
1.DEVANSHU 2.SUMIT
3. ABHISHEK 4.SHUBHAM
TABLE OF CONTENTS
Certificate
Acknowledgement
Working description of project
Header files and their purpose
Files generated
Coding & outputs
Bibliography
CERTIFICATE
This is to certify that DEVANSHU of class XIIA, Board Registration No. 16046 of Kendriya
Vidyalaya No. 1, Sector- 30, Gandhinagar has
successfully completed his Synopsis Report in
Computer Science on topic INTERNATIONAL
RESTAURANT FOOD LIST for the fulfillment
of AISSCE as prescribed by CBSE for the year
2013-2014.
Date:
Signature of Guide
Signature of External
Signature of PRINCIPAL
Acknowledgement
It gives us great pleasure and deep
satisfaction in presenting the project towards
the fulfillment of practical knowledge in C++.
We take the opportunity to express our
sincere gratitude to several people with whose
help and encouragement, we have completed
this project successfully. We would like to
thank Mr. Nilay Parekh for his able guidance,
valuable suggestions and continuous
encouragement during the time of project. We
wish to put our deepest sense of appreciation
and thanks to him.
shall
not
acknowledgement.
appear
in
this
formal
SOFTWARE DEVELOPMENT
PARADIGM
The software development paradigm used in
developing this software is waterfall. In this every
phase is executed very carefully one after another.
Any other SDLC model follows this technique as its
basic unit. The various phases of waterfall model
which model with its working as follows:
Preliminary Investigation
System Design
System Analysis
Coding
Testing
Implementation
char cat[40][50];
int cost[100];
int code[100];
int i,j,sum;
public:
void getc(void);
void geti(void);
void getb(void);
void readc(void);
void readi(void);
void readb(void);
void order(void);
void show(void);
};
cin>>cost[i];
cout<<"\n \n";
fout<<cat[i]<<"\t"<<code[i]<<cost[i]<<"\n";
}
fout.close();
}
void TIR::geti(void)
{
int n;
cout<<"Enter how many ITEMS for Indian:=";
cin>>n;
ofstream fout;
fout.open("D:\\indian.txt");
for(i=0;i<n;i++)
{
cout<<"Enter items:=";
cin>>cat[i];
cout<<"Enter code:=";
cin>>code[i];
cout<<"Enter cost:=";
cin>>cost[i];
cout<<"\n \n";
fout<<cat[i]<<"\t"<<code[i]<<cost[i]<<"\n";
} fout.close();
}
void TIR::getb(void)
{
int n;
cout<<"Enter how many ITEMS for Bangladeshi:=";
cin>>n;
ofstream fout;
fout.open("D:\\Bangladeshi.txt");
for(i=0;i<n;i++)
{ cout<<"Enter items:=";
cin>>cat[i];
cout<<"Enter code:=";
cin>>code[i];
cout<<"Enter cost:=";
cin>>cost[i];
fout<<cat[i]<<"\t"<<code[i]<<"\t"<<cost[i]<<"\n";
}
fout.close();
}
void TIR::readc(void)
{
ifstream fin;
fin.open("D:\\Chinese.txt",ios::in);
cout<<"ITEMS "<<"\t "<<"CODE "<<"\n COST ";
for(j=0;j<4;j++)
{
fin>>cat[j];
fin>>code[j];
fin>>cost[j];
cout<<cat[j]<<"\t"<<code[j]<<"\t"<<cost[j];
cout<<"\n";
}
fin.close();
}
void TIR::readi(void)
{
ifstream fin;
fin.open("D:\\indian.txt",ios::in);
cout<<"ITEMS "<<"\t "<<"CODE "<<"\n COST ";
for(j=0;j<4;j++)
{
fin>>cat[j];
fin>>code[j];
fin>>cost[j];
cout<<cat[j]<<"\t "<<code[j]<<"\t"<<cost[j];
cout<<"\n";
}
fin.close();
void TIR::readb(void)
{
ifstream fin;
fin.open("D:\\Bangladeshi.txt",ios::in);
cout<<"ITEMS "<<"\t "<<"CODE "<<"\t"<<"COST ";
for(j=0;j<4;j++)
{
fin>>cat[j];
fin>>code[j];
fin>>cost[j];
cout<<cat[j]<<"\t"<<code[j]<<"\t"<<cost[j];
cout<<"\n";
}
}
fin.close();
void TIR::order(void)
{
int m;
sum=0;
cout<<"Enter the item code to order:=";
cin>>m;
for(int j=0;j<4;j++)
{
if(m==code[j])
{
sum=sum+cost[j];
break;
}
}
void TIR::show(void)
{
clrscr();
cout<<"Your total payable amount:="<<sum<<"\n";
getch();
}
void main()
{
TIR i;
for(; ;)
{
clrscr();
cout<<"*****************************"<<endl;
switch(a)
{
case 1:
clrscr();
i.readc();
i.order();
break;
case 2:
clrscr();
i.readi();
i.order();
break;
case 3:
clrscr();
i.readb();
i.order();
break;
case 4:
clrscr();{
i.show();}
break;
default :
cout<<"\n No choice given \n";
exit(0);
}
} getch();}
OUTPUT