Beruflich Dokumente
Kultur Dokumente
PROJECT REPORT
IN
COMPUTER SCIENCE FOR GRADE – XI
(2018 - 2019)
ROLL NO. : 1
1
CHANDRAKANTHI PUBLIC SCHOOL
CERTIFICATE
PLACE: COIMBATORE
DATE :
2
ACKNOWLEDGEMENT
At the outset, I would like to take this opportunity to express my
gratitude to the almighty God, for keeping me in good health all
through this grueling project work.
Place : (ATHISH.M)
Date : GRADE XI B
3
PROJECT TITLE:
TOTAL INCOME GENERATOR
4
INDEX
5
ABSTRACT
6
HARDWARE SPECIFICATION
SOFTWARE SPECIFICATION
7
MODULES
Module 3:This module displays the bill listed with the products
chosen and its requirement along with the calculation of the gst.
Module 4:This the last module that enables the user to view the
total income of the shop.
8
DATA FLOW DIAGRAMS
Start
9
A
10
B
3.Continue
STOP
11
SOURCE CODE
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
#include<stdio.h>
#include<stdlib.h>
struct pizza
{
unsigned int a,b;
}p1,p2,p3,p4,p5,p6,p7;
void main()
{int ab;
cout<<setw(47)<<"MACAW'S PIZZA WORLD\n";
cout<<" Menu Card\n";
Item"<<setw(22)<<"Price"<<setw(9)<<"|"<<setw(11)<<"
Item"<<setw(22)<<"Price\n";
12
cout<<"Margherita"<<setw(6)<<"-"<<setw(9)<<"75"
<<setw(11)<<"|"<<setw(13)<<"Pepper"<<setw(7)<<"-
"<<setw(11)<<"175"<<"\n";
cout<<" Meatza"<<setw(9)<<"-
"<<setw(10)<<"245"<<setw(10)<<"|"<<setw(13)<<"
Cheese Margherita"<<setw(2)<<"-
"<<setw(12)<<"130\n";
cout<<"Barbeque Chicken"<<setw(1)<<"-
"<<setw(10)<<"175"<<setw(10)<<"|"<<setw(17)<<"Zest
y Chicken"<<setw(3)<<"-"<<setw(12)<<"210\n";
p1.a=75;
p2.a=175;
p3.a=245;
p4.a=130;
p5.a=175;
p6.a=210;
p7.a=20;
cout<<setw(40)<<"BILLING\n";
cout<<"\nEnter the no of products under each
category:\n"<<"\n";
13
cout<<" Margherita:";
cin>>p1.b;
cout<<"\n Pepper:";
cin>>p2.b;
cout<<"\n Meatza:";
cin>>p3.b;
cout<<"\n Cheese Margherita:";
cin>>p4.b;
cout<<"\n Barbeque Chicken:";
cin>>p5.b;
cout<<"\n Zesty Chicken:";
cin>>p6.b;
cout<<"\n Basil/Tatar Dip:";
cin>>p7.b;
cout<<setw(40)<<" BILL\n";
int k,l,m,n,o,p,q,r;
r=1;
if(p1.b==0)
14
{
k=0;
}
else if(p1.b>0)
{
k=r;
}
if(p2.b==0)
{l=k;
}
else if(p2.b>0)
{l=k+1;
}
if(p3.b==0)
{m=l;
}
else if(p3.b>0)
{m=l+1;
15
}
if(p4.b==0)
{n=m;
}
else if(p4.b>0)
{n=m+1;
}
if(p5.b==0)
{o=n;
}
else if(p5.b>0)
{o=n+1;
}
if(p6.b==0)
{p=o;
}
else if(p6.b>0)
{p=o+1;
16
}
if(p7.b==0)
{q=p;
}
else if(p7.b>0)
{q=p+1;
}
cout<<" \n \n";
cout<<"S.no"<<setw(22)<<"Pizza
Name"<<setw(19)<<"Price"<<setw(15)<<"Nos"<<setw(1
7)<<"Cost\n";
cout<<" \n";
if(p1.b>0)
{
cout<<k<<setw(25)<<"Margherita"<<setw(17)<<p1.a<<s
etw(17)<<p1.b<<setw(15)<<p1.a*p1.b<<"\n";
}
if(p2.b>0)
17
{
cout<<l<<setw(25)<<"Pepper"<<setw(17)<<p2.a<<setw(
17)<<p2.b<<setw(15)<<p2.a*p2.b<<"\n";
}
if(p3.b>0)
{cout<<m<<setw(25)<<"Meatza"<<setw(17)<<p3.a<<set
w(17)<<p3.b<<setw(15)<<p3.a*p3.b<<"\n";
}
if(p4.b>0)
{cout<<n<<setw(25)<<"Cheese
Margherita"<<setw(17)<<p4.a<<setw(17)<<p4.b<<setw(
15)<<p4.a*p4.b<<"\n";
}
if(p5.b>0)
{
cout<<o<<setw(25)<<"Barbeque
Chicken"<<setw(17)<<p5.a<<setw(17)<<p5.b<<setw(15)
<<p5.a*p5.b<<"\n";
}
18
if(p6.b>0)
{
cout<<p<<setw(25)<<"Zesty
Chicken"<<setw(17)<<p6.a<<setw(17)<<p6.b<<setw(15)
<<p6.a*p6.b<<"\n";
}
if(p7.b>0)
{
cout<<q<<setw(25)<<"Basil/Tatar
Dip"<<setw(17)<<p7.a<<setw(17)<<p7.b<<setw(15)<<p
7.a*p7.b<<"\n";
}
int d,e,f,g,h,i,j;
d=p1.a*p1.b;
e=p2.a*p2.b;
f=p3.a*p3.b;
g=p4.a*p4.b;
h=p5.a*p5.b;
i=p6.a*p6.b;
19
j=p7.a*p7.b;
int c;
float u;
u=(d+e+f+g+h+i+j)*(0.05);
c=(d+e+f+g+h+i+j)*(0.05);
cout<<" \n"<<" \n";
cout<<setw(25)<<"Gst tax: "<<setw(49)<<u;
cout<<setw(80)<<" (Gst rounded off)";
cout<<"\n"<<setw(75)<<"___________________";
cout<<"\nTotal"<<setw(70)<<d+e+f+g+h+i+j+c<<"\n";
cout<<setw(76)<<"___________________\n";
cout<<"------------------------------------------------------------
--------------------\n";
long unsigned int amt,ern;
amt=d+e+f+g+h+i+j;
ern+=amt;
int z;
cout<<"\nPress 0 to know today's earnings.";
20
cout<<"\nPress 1 to Skip.";
cout<<"\nPress 2 to refresh earnings.\n";
cin>>z;
switch(z)
{
case 0:cout<<"Today's Earning:"<<ern;
break;
case 1:cout<<" \n";
break;
case 2:ern=0;
cout<<"Earning Refreshed.";
break;
default:cout<<"Invalid Input!\n";
break;
}
getch();
}
21
SCREENSHOTS
22
23
CONCLUSION
Hence this simple C++ program helps the hotel operator to easily
calculate their daily incomes and also refresh the incomes on daily
basis.This program can be further developed by including the bill
number, time of billing ,name of the operator .
REFERENCES
24