Sie sind auf Seite 1von 26

SYNOPSIS REPORT

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.

We are very grateful to our parents for their


constant and loving support. Finally, there are
some special people without whose support this
project would never have been a success their
names

shall

not

acknowledgement.

appear

in

this

formal

HEADER FILES USED AND THEIR PURPOSE


1. IOSTREAM.H > for file handling,cin and cout
2. PROCESS.H > for exit() function.
3. CONIO.H > for clrscr() and getch() functions.

4. STDIO.H > for standard I/O operations.


5. STRING.H > for string handling.
6.IOMANIP.H ->for C++ streams I/O manipulators.

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

International Restaurant Food List


#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdlib.h>
class TIR
{
private:

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);

};

void TIR::getc (void)


{
int n;
cout<<"Enter how many ITEMS for Chinese:=";
cin>>n;
ofstream fout;
fout.open("D:\\Chinese.txt");
for(i=0;i<n;i++)
{
cout<<"Enter food items:=";
cin>>cat[i];
cout<<"Enter food code:=";
cin>>code[i];
cout<<"Enter food cost:=";

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;

cout<<"\n WELCOME TO INTERNATIONAL


REASTAURENT"<<endl;
cout<<"1.FOR SELECTING CHINESE FOOD ITEMS;
cout<<"2.FOR SELECTING INDIAN FOOD ITEMS;
cout<<"3.FOR SELECTING BANGLADESHI FOOD
ITEMS\n";
cout<<"4.TO SHOW THE BILL OF THE SELECTED
FOODS.\n";
cout<<"5.EXIT.\n \n";
cout<<"*****************************<<endl;
cout<<"Enter our Choice:=";
int a;
cin>>a;

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

Das könnte Ihnen auch gefallen