PF-Final Project (Supermarket Billing Sysem)
PF-Final Project (Supermarket Billing Sysem)
Components of program:
1. Header files:
1. #include<iostream>: It is an object-oriented library that provides input and output
functionality using streams. A stream is a sequence of bytes.
2. #include<string>: It is a library to perform functions related to strings.
3. #include<cstdlib>: stdlib.h is the header of the general-purpose standard library of C
programming language which includes functions involving memory allocation, process
control, conversions, and others. It is compatible with C++ and is known as cstdlib in
C++. Some of C inbuilt functions which are declared in cstdlib header file are given
below”
1. exit(): This function terminates the program and does not return any value
2. system(): This function is used to execute commands outside the C program.
3. rand(): This function returns the random integer numbers
Output:
2. Once you are in product category section you could choose from number of different
categories by pressing the number written in start of them. If you press 000, then it will
take you back to front page and if your entered any number from the category it will take
you to that category. If accidently entered wrong input, it will give you warning and then
return you to the product category section. The input value will be stored in v2.choice, it
will be checked using if else statement.
Code:
Output:
3. Let’s select category Stationary by pressing 3, it will take you to the Stationary section
with all the products available to buy with their prices shown beside them. Here it will
declare another structure variable v21. Now entering the product you want to buy by
pressing the number is start of each product. The entered value will be checked using if
else and it will input it in v21.choice. If the entered value is 000 it will take you back to
category section, and if the entered value is from one of the product items, it will ask for
the number of quantity you want to buy when entered it will store it in v21.q (variable
for storing quantity). After that it will execute this statement:
total+=(v21.q)*stat(v21.choice,v21.q,pname,pprice,pq);
In this statement, the total variable that is initialized in the beginning of the program and
assigned zero will store the amount of the number of products you bought by multiplying
the quantity with the price of the product by calling a function associated with stationary
section and send 5 parameters including (v21.choice, v21.q, pname, pprice, pq) where
pname, pprice, and pq are arrays declared in start of the program. pname will store the
name of the product we will buy, pprice will store the price of product we will buy and
pq will store the quantity we tell the program to buy. After all that, there will be 1
increment in variable numi which is declared globally and assigned 0, it represent the
number of items we bought and at last will return the price of the product. On return the
price, the price will get multiplied with the quantity and get stored in total variable.
Code:
Output:
4. After that, a message will show the amount added to the bill and program will ask you
that “Do you want to continue shopping?”, the input value will be stored in v21.ch, it
will be checked using if else statement. If entered ‘Y’ or ‘y’, it will take you back to
stationary section so you could continue shopping and if you entered ‘N’ or ‘n’, it will
just print you the bill with products you bought. If accidently entered wrong input, it will
give you warning and then return you to the same question of do you want to continue
shopping?
Code:
Output:
5. Let’s say we entered n, it will take as to the part of program where the bill is going to
print,, there it will check the total amount and see if there is any discount that could be
given, if any than it will subtract tha discount from total and print you the bill. Upon
pressing any button, the control will be exited from the program and it will close.
Code:
Output:
Program:
#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
int numi=0;
struct variable {
int choice;
int q;
char ch;
};
return price[i];
}
}
return 0;
}
//Male T-Shirt
return price[i];
}
}
return 0;
}
//Male jeans
return price[i];
}
}
return 0;
}
//Male coat
int mshoes(int x,int y,string narray[], int parray[],int qarray[]){
string item[5]={"Boots","Sneakers","Lace up","Loafers","Sandals"};
int price[5]={7000,4000,3000,4500,1000};
for(int i=0;i<5;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}
//Male shoes
int msuit(int x,int y,string narray[], int parray[],int qarray[]){
string item[4]={"Three Piece Suit","Stretch Suit","Slim Fit Suit","Tuxedos"};
int price[4]={75000,30000,60000,120000};
for(int i=0;i<4;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}
//Men suits
return price[i];
}
}
return 0;
}
//Men shirts
return price[i];
}
}
return 0;
}
//Men accessories
return price[i];
}
}
return 0;
}
//Women tops
return price[i];
}
}
return 0;
}
//Womeen Bottoms
return price[i];
}
}
return 0;
}
//women dresses
int wshoes(int x,int y,string narray[], int parray[],int qarray[]){
string item[4]={"Platforms","Trainers","High Heel Boots","Peep Toe"};
int price[4]={6000,3000,7000,4000};
for(int i=0;i<4;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}
//women shoes
int wfw(int x,int y,string narray[], int parray[],int qarray[]){
string item[4]={"Buissness Formal","Cocktail","Frock coat","Midi Dress"};
int price[4]={10000,8000,4500,3000};
for(int i=0;i<4;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}
return price[i];
}
}
return 0;
}
//women desi
int wacc(int x,int y,string narray[], int parray[],int qarray[]){
string item[5]={"Necklace","Earrings","Bangels","Rings","Pendant"};
int price[5]={2500,1500,900,500,500};
for(int i=0;i<5;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}
//women accessories
// cloths section
return price[i];
}
}
return 0;
}
// household section
return price[i];
}
}
return 0;
}
//statioanry
return price[i];
}
}
return 0;
} //electronic only
return price[i];
}
}
return 0;
} //entertainment only
return price[i];
}
}
return 0;
}
return price[i];
}
}
return 0;
}//vegtables
return price[i];
}
}
return 0;
}//fruits
return price[i];
}
}
return 0;
}//dairy
return price[i];
}
}
return 0;
}//frozen food
return price[i];
}
}
return 0;
}//bakery
int drink(int x,int y,string narray[], int parray[],int qarray[]){
string item[6]={"Pepsi 1L (6-Pack)","Coca Cola 1.5L (6-Pack)","Aquafina 1.5L (6-
Pack)","Nestle Milo Bottle (6-Pack)","Slice Juice 1L (6-Pack)","Fruita Vital Mango 200ml (6-
Pack)"};
int price[6]={832,900,505,840,1050,393};
for(int i=0;i<6;i++){
if((x-1)==i){
narray[170-(170-numi)]=item[i];
parray[170-(170-numi)]=price[i];
qarray[170-(170-numi)]=y;
numi+=1;
return price[i];
}
}
return 0;
}//beverages
int main() {
string pname[170];
int pprice[170];
int pq[170];
float total=0;
variable v1;
main:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Star Supermarket Lim. |" << "\n";
cout << "| |" << "\n";
cout << "| |" << "\n";
cout << "| B - (Make bill for bought items) |" << "\n";
cout << "| |" << "\n";
cout << "| |" << "\n";
cout << "| E - (Take you to end) |" << "\n";
cout << "| |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout << "Enter your selection: ";
cin >> v1.ch;
if (v2.choice == 000) {
system("CLS");
goto main;
}
else if(v2.choice==1){
variable v3;
cloth:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Cloths |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Men's Cloths |" << "\n";
cout << "| |" << "\n";
cout << "| 2. Women's Cloths |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Enter your preference: ";
cin>>v3.choice;
if(v3.choice==000){
system("CLS");
goto catg;
}
else if(v3.choice==1){
variable v4;
men:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Cloths |" << "\n";
cout << "| |" << "\n";
cout << "| 1. T-Shirt |" << "\n";
cout << "| 2. Jeans and Pants |" << "\n";
cout << "| 3. Jackets and coat |" << "\n";
cout << "| 4. Shoes |" << "\n";
cout << "| 5. Suits |" << "\n";
cout << "| 6. Shirts |" << "\n";
cout << "| 7. Accessories |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Retrun Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Select your desired option: ";
cin>>v4.choice;
if(v4.choice==000){
system("CLS");
goto cloth;
}
else if(v4.choice==111){
system("CLS");
goto catg;
}
else if(v4.choice==1){
variable v5;
mtshirt:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's T-Shirts |" << "\n";
cout << "| |" << "\n";
cout << "| 1. White T-Shirt Rs. 500 |" << "\n";
cout << "| 2. Black T-Shirt Rs. 500 |" << "\n";
cout << "| 3. Polo T-Shirt Rs. 1500 |" << "\n";
cout << "| 4. V-Neck T-Shirt Rs. 700 |" << "\n";
cout << "| 5. Full Sleve T-shirt Rs. 900 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v5.choice;
if(v5.choice==000){
system("CLS");
goto men;
}
else if(v5.choice==111){
system("CLS");
goto catg;
}
else if(v5.choice>=1&&v5.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v5.q;
system("CLS");
total+= (v5.q)*mtshirt(v5.choice,v5.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto mtshirt;
d1:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v5.ch;
if(v5.ch=='y'||v5.ch=='Y'){
system("CLS");
goto mtshirt;
}
else if(v5.ch=='n'||v5.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d1;
}
}//men t-shirts
else if(v4.choice==2){
variable v6;
jeans:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Jeans and Pants |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Jeans (Any Color) Rs. 700 |" << "\n";
cout << "| 2. Baggy Pants (Any Color) Rs. 800 |" << "\n";
cout << "| 3. Cargo pants (Any Color) Rs. 1000 |" << "\n";
cout << "| 4. Bell-Bottoms (Any Color) Rs. 1200 |" << "\n";
cout << "| 5. Dress Pants (Any Color) Rs. 1000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v6.choice;
if(v6.choice==000){
system("CLS");
goto men;
}
else if(v6.choice==111){
system("CLS");
goto catg;
}
else if(v6.choice>=1&&v6.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v6.q;
system("CLS");
total+= (v6.q)*mjeans(v6.choice,v6.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto jeans;
}
d2:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v6.ch;
if(v6.ch=='y'||v6.ch=='Y'){
system("CLS");
goto jeans;
}
else if(v6.ch=='n'||v6.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d2;
}
}//men jeans and pants
else if(v4.choice==3){
variable v7;
coat:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Jackets and coat |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Biker Jacket (Any Color) Rs. 5500 |" << "\n";
cout << "| 2. Puffer Jacket (Any Color) Rs. 2500 |" << "\n";
cout << "| 3. Blazer (Any Color) Rs. 2000 |" << "\n";
cout << "| 4. Overcoat (Any Color) Rs. 3500 |" << "\n";
cout << "| 5. Raincoat (Any Color) Rs. 900 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v7.choice;
if(v7.choice==000){
system("CLS");
goto men;
}
else if(v7.choice==111){
system("CLS");
goto catg;
}
else if(v7.choice>=1&&v7.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v7.q;
system("CLS");
total+= (v7.q)*mcoat(v7.choice,v7.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto coat;
}
d3:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v7.ch;
if(v7.ch=='y'||v7.ch=='Y'){
system("CLS");
goto coat;
}
else if(v7.ch=='n'||v7.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d3;
}
cout<<"\n";
cout<<"Choose your product: ";
cin>>v8.choice;
if(v8.choice==000){
system("CLS");
goto men;
}
else if(v8.choice==111){
system("CLS");
goto catg;
}
else if(v8.choice>=1&&v8.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v8.q;
system("CLS");
total+=(v8.q)*mshoes(v8.choice,v8.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto jeans;
}
d4:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v8.ch;
if(v8.ch=='y'||v8.ch=='Y'){
system("CLS");
goto shoes;
}
else if(v8.ch=='n'||v8.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d4;
}
}//men shoes
else if(v4.choice==5){
variable v9;
suit:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Suits |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Three piece Suit Rs. 75,000 |" << "\n";
cout << "| 2. Stretch Suit Rs. 30,000 |" << "\n";
cout << "| 3. Slim Fit Suit Rs. 60,000 |" << "\n";
cout << "| 4. Tuxedos Rs. 120,000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v9.choice;
if(v9.choice==000){
system("CLS");
goto men;
}
else if(v9.choice==111){
system("CLS");
goto catg;
}
else if(v9.choice>=1&&v9.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v9.q;
system("CLS");
total+=(v9.q)*msuit(v9.choice,v9.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto suit;
}
d5:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v9.ch;
if(v9.ch=='y'||v9.ch=='Y'){
system("CLS");
goto suit;
}
else if(v9.ch=='n'||v9.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d5;
}
}//men shirts
else if(v4.choice==6){
variable v10;
shirt:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Shirts |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Oxford Shirt (Any Color) Rs. 3300 |" << "\n";
cout << "| 2. Dress Shirt (Any Color) Rs. 2700 |" << "\n";
cout << "| 3. Cuban Collar Shirt (Any Color) Rs. 2500 |" << "\n";
cout << "| 4. Denim Shirt (Any Color) Rs. 3500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v10.choice;
if(v10.choice==000){
system("CLS");
goto men;
}
else if(v10.choice==111){
system("CLS");
goto catg;
}
else if(v10.choice>=1&&v10.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v10.q;
system("CLS");
total+= (v10.q)*mshirt(v10.choice,v10.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto suit;
}
d6:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v10.ch;
if(v10.ch=='y'||v10.ch=='Y'){
system("CLS");
goto shirt;
}
else if(v10.ch=='n'||v10.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d6;
}
}//men shirts
else if(v4.choice==7){
variable v11;
acc:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Men's Accessories |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Sun Glasses Rs. 2000 |" << "\n";
cout << "| 2. Wallets (Any Color) Rs. 1000 |" << "\n";
cout << "| 3. Belts (Any Color) Rs. 700 |" << "\n";
cout << "| 4. Ties (Any Color) Rs. 900 |" << "\n";
cout << "| 5. Hats (Any Color) Rs. 1500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v11.choice;
if(v11.choice==000){
system("CLS");
goto men;
}
else if(v11.choice==111){
system("CLS");
goto catg;
}
else if(v11.choice>=1&&v11.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v11.q;
system("CLS");
total+=(v11.q)*macc(v11.choice,v11.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto suit;
}
d7:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";;
cin>>v11.ch;
if(v11.ch=='y'||v11.ch=='Y'){
system("CLS");
goto shirt;
}
else if(v11.ch=='n'||v11.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input.Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d7;
}
}//men accesories
}//men cloth
else if(v3.choice==2){
variable v12;
wcloth:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Cloths |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Tops |" << "\n";
cout << "| 2. Bottoms |" << "\n";
cout << "| 3. Western Dresses |" << "\n";
cout << "| 4. Shoes |" << "\n";
cout << "| 5. Formal Wear |" << "\n";
cout << "| 6. Desi |" << "\n";
cout << "| 7. Accessories |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Select your desired option: ";
cin>>v12.choice;
if(v12.choice==000){
system("CLS");
goto cloth;
}
else if(v12.choice==111){
system("CLS");
goto catg;
}
else if(v12.choice==1){
variable v13;
wtops:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Tops |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Bardot Top (Any Color) Rs. 1000 |" << "\n";
cout << "| 2. Crop Top (Any Color) Rs. 1500 |" << "\n";
cout << "| 3. Asymmetric Top (Any Color) Rs. 1300 |" << "\n";
cout << "| 4. Kaftan Top (Any Color) Rs. 2000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v13. choice;
if(v13.choice==000){
system("CLS");
goto wcloth;
}
else if(v13.choice==111){
system("CLS");
goto catg;
}
else if(v13.choice>=1&&v13.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v13.q;
system("CLS");
total+=(v13.q)*wtops(v13.choice,v13.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wtops;
}
d8:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v13.ch;
if(v13.ch=='y'||v13.ch=='Y'){
system("CLS");
goto wtops;
}
else if(v13.ch=='n'||v13.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d8;
}
}//women tops
else if(v12.choice==2){
variable v14;
wbottom:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Bottoms |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Jeans (Any Color) Rs. 900 |" << "\n";
cout << "| 2. Palazzo Pants (Any Color) Rs. 1300 |" << "\n";
cout << "| 3. Leggings (Any Color) Rs. 800 |" << "\n";
cout << "| 4. StretcH Pants (Any Color) Rs. 1500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v14. choice;
if(v14.choice==000){
system("CLS");
goto wcloth;
}
else if(v14.choice==111){
system("CLS");
goto catg;
}
else if(v14.choice>=1&&v14.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v14.q;
system("CLS");
total+=(v14.q)*wbottom(v14.choice,v14.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wtops;
}
d9:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v14.ch;
if(v14.ch=='y'||v14.ch=='Y'){
system("CLS");
goto wbottom;
}
else if(v14.ch=='n'||v14.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d9;
}
}//women botttoms
else if(v12.choice==3){
variable v15;
wdress:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Western Dresses |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Empire Waist (Any Color) Rs. 8000 |" << "\n";
cout << "| 2. Bodoycon (Any Color) Rs. 7500 |" << "\n";
cout << "| 3. Sheath (Any Color) Rs. 4500 |" << "\n";
cout << "| 4. Ballgown (Any Color) Rs. 5000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v15. choice;
if(v15.choice==000){
system("CLS");
goto wcloth;
}
else if(v15.choice==111){
system("CLS");
goto catg;
}
else if(v15.choice>=1&&v15.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v15.q;
system("CLS");
total+=(v15.q)*wdress(v15.choice,v15.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wtops;
}
d10:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v15.ch;
if(v15.ch=='y'||v15.ch=='Y'){
system("CLS");
goto wdress;
}
else if(v15.ch=='n'||v15.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d10;
}
else if(v12.choice==4){
variable v16;
wshoes:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Shoes |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Platforms (Any Color) Rs. 6000 |" << "\n";
cout << "| 2. Trainers (Any Color) Rs. 3000 |" << "\n";
cout << "| 3. High Hell Boots (Any Color) Rs. 7000 |" << "\n";
cout << "| 4. Peep Toe (Any Color) Rs. 4000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v16. choice;
if(v16.choice==000){
system("CLS");
goto wcloth;
}
else if(v16.choice==111){
system("CLS");
goto catg;
}
else if(v16.choice>=1&&v16.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v16.q;
system("CLS");
total+=(v16.q)*wshoes(v16.choice,v16.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wshoes;
}
d11:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v16.ch;
if(v16.ch=='y'||v16.ch=='Y'){
system("CLS");
goto wdress;
}
else if(v16.ch=='n'||v16.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d11;
}
}//Women shoes
else if(v12.choice==5){
variable v17;
wfw:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Formal wear |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Buissness Formal (Any Color) Rs. 10,000 |" << "\n";
cout << "| 2. Cocktail (Any Color) Rs. 8000 |" << "\n";
cout << "| 3. Frock coat (Any Color) Rs. 4500 |" << "\n";
cout << "| 4. Midi dress (Any Color) Rs. 3000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v17. choice;
if(v17.choice==000){
system("CLS");
goto wcloth;
}
else if(v17.choice==111){
system("CLS");
goto catg;
}
else if(v17.choice>=1&&v17.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v17.q;
system("CLS");
total+=(v17.q)*wfw(v17.choice,v17.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wfw;
}
d12:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v17.ch;
if(v17.ch=='y'||v17.ch=='Y'){
system("CLS");
goto wfw;
}
else if(v17.ch=='n'||v17.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d12;
}
else if(v12.choice==6){
variable v18;
wdesi:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Desi |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Saree (Any Color) Rs. 9000 |" << "\n";
cout << "| 2. Salwar Kameez (Any Color) Rs. 5000 |" << "\n";
cout << "| 3. Lehenga Choli (Any Color) Rs. 7000 |" << "\n";
cout << "| 4. Patiala Suit (Any Color) Rs. 6500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v18. choice;
if(v18.choice==000){
system("CLS");
goto wcloth;
}
else if(v18.choice==111){
system("CLS");
goto catg;
}
else if(v18.choice>=1&&v18.choice<=4){
cout<<"Enter the quantity you want to buy: ";
cin>>v18.q;
system("CLS");
total+=(v18.q)*wdesi(v18.choice,v18.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wdesi;
}
d13:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v18.ch;
if(v18.ch=='y'||v18.ch=='Y'){
system("CLS");
goto wdesi;
}
else if(v18.ch=='n'||v18.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d13;
}
}//Women desi
else if(v12.choice==7){
variable v19;
wacc:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Women's Accessories |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Necklace (Any Color) Rs. 2500 |" << "\n";
cout << "| 2. Earrings (Any Color) Rs. 1500 |" << "\n";
cout << "| 3. Bangles (Any Color) Rs. 900 |" << "\n";
cout << "| 4. Rings (Any Color) Rs. 500 |" << "\n";
cout << "| 5. Pendant (Any Color) Rs. 500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v19. choice;
if(v19.choice==000){
system("CLS");
goto wcloth;
}
else if(v19.choice==111){
system("CLS");
goto catg;
}
else if(v19.choice>=1&&v19.choice<=5){
cout<<"Enter the quantity you want to buy: ";
cin>>v19.q;
system("CLS");
total+=(v19.q)*wacc(v19.choice,v19.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wacc;
}
d14:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v19.ch;
if(v19.ch=='y'||v19.ch=='Y'){
system("CLS");
goto wacc;
}
else if(v19.ch=='n'||v19.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d14;
}
}//Women Accessories
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto wcloth;
}
} // cloth
else if(v2.choice==2){
variable v20;
house:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout << "| household and cleaning |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Detergent Rs. 400 |" << "\n";
cout << "| 2. Shiner Spray Rs. 500 |" << "\n";
cout << "| 3. Toothbrushes Rs. 300 |" << "\n";
cout << "| 4. Wipers Rs. 700 |" << "\n";
cout << "| 5. Air Freshner Rs. 500 |" << "\n";
cout << "| 6. Bleach Rs. 380 |" << "\n";
cout << "| 7. Sanitizers Rs. 400 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Retrun Back |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v20.choice;
if(v20.choice==000){
system("CLS");
goto catg;
}
else if(v20.choice>=1&&v20.choice<=7){
cout<<"Enter the quantity you want to buy: ";
cin>>v20.q;
system("CLS");
total+=(v20.q)*house(v20.choice,v20.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto house;
}
d15:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<" Do you want to continue shopping? (y/n): ";
cin>>v20.ch;
if(v20.ch=='y'||v20.ch=='Y'){
system("CLS");
goto house;
}
else if(v20.ch=='n'||v20.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d15;
}
else if(v2.choice==3){
variable v21;
stat:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout << "| Statioanry |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Highlighter Rs. 200 |" << "\n";
cout << "| 2. Fountain Pen Rs. 50 |" << "\n";
cout << "| 3. Scissors Rs. 300 |" << "\n";
cout << "| 4. Casio Calculator Rs. 5000 |" << "\n";
cout << "| 5. Clear Glue Rs. 150 |" << "\n";
cout << "| 6. Color Pencils (Box) Rs. 250 |" << "\n";
cout << "| 7. Notebook Rs. 500 |" << "\n";
cout << "| 8. Eraser Rs. 20 |" << "\n";
cout << "| 9. Board Marker Rs. 150 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Retrun Back |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v21.choice;
if(v21.choice==000){
system("CLS");
goto catg;
}
else if(v21.choice>=1&&v21.choice<=9){
cout<<"Enter the quantity you want to buy: ";
cin>>v21.q;
system("CLS");
total+=(v21.q)*stat(v21.choice,v21.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank You."<<"\n";
system("PAUSE");
system("CLS");
goto stat;
}
d16:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shoppinig? (y/n): ";
cin>>v21.ch;
if(v21.ch=='y'||v21.ch=='Y'){
system("CLS");
goto stat;
}
else if(v21.ch=='n'||v21.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d16;
}
}// stationary
else if(v2.choice==4){
variable v22;
ee:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout << "| Electronics and Entertainment |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Electronics |" << "\n";
cout << "| |" << "\n";
cout << "| 2. Entertainment |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Retrun Back |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Select your desired option: ";
cin>>v22.choice;
if(v22.choice==000){
system("CLS");
goto catg;
}
else if(v22.choice==1){
variable v23;
ele:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Electronics |" << "\n";
cout << "| |" << "\n";
cout << "| 1.Samsung Washing Machine Rs.200,000 |" << "\n";
cout << "| 2.Spin Dryer Rs.50,000 |" << "\n";
cout << "| 3.Led TV 60 inch Rs.70,000 |" << "\n";
cout << "| 4.Homege Microwave Oven Rs.50,000 |" << "\n";
cout << "| 5.Split Air Conditioner (1-Ton) Rs.106,000 |" << "\n";
cout << "| 6.Fridge dawlance Rs.80,000 |" << "\n";
cout << "| 7.Philip's Electric Heater Rs.15,000 |" << "\n";
cout << "| 8.Instant Electric Geyser Rs.30,000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v23.choice;
if(v23.choice==000){
system("CLS");
goto ee;
}
else if(v23.choice==111){
system("CLS");
goto catg;
}
else if(v23.choice>=1&&v23.choice<=8){
cout<<"Enter the quantity you want to buy: ";
cin>>v23.q;
system("CLS");
total+=(v23.q)*ele(v23.choice,v23.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto ele;
}
d17:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v23.ch;
if(v23.ch=='y'||v23.ch=='Y'){
system("CLS");
goto ele;
}
else if(v23.ch=='n'||v23.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d17;
}
else if(v22.choice==2){
variable v24;
ent:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Entertainment |" << "\n";
cout << "| |" << "\n";
cout << "| 1.Movie DVDs Rs.250 |" << "\n";
cout << "| 2.Video Games Rs.1500 |" << "\n";
cout << "| 3.Books Rs.700 |" << "\n";
cout << "| 4.Samsung DVD Player Rs.60,000 |" << "\n";
cout << "| 5.X-Box X (Gaming Console) Rs.185,000 |" << "\n";
cout << "| 6.Playstation 5 (Gaming Console) Rs.180,000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v24.choice;
if(v24.choice==000){
system("CLS");
goto ee;
}
else if(v24.choice==111){
system("CLS");
goto catg;
}
else if(v24.choice>=1&&v24.choice<=8){
cout<<"Enter the quantity you want to buy: ";
cin>>v24.q;
system("CLS");
total+=(v24.q)*ent(v24.choice,v24.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto ent;
}
d18:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shop?(y/n): ";
cin>>v24.ch;
if(v24.ch=='y'||v24.ch=='Y'){
system("CLS");
goto ent;
}
else if(v24.ch=='n'||v24.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d18;
}
}// entertainment
else{
cout<<"Invalid input. Please enter vlaid Input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto ee;
}
} //electronics and entertainments
else if(v2.choice==5){
variable v25;
sport:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Sports and Outdoor |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Soccer Ball Rs.4000 |" << "\n";
cout << "| 2. Camping Gear (Tents,Camping stoves,etc) Rs.9000 |" << "\n";
cout << "| 3. Red Ball Cricket Bat Rs.23,000 |" << "\n";
cout << "| 4. Cricket Red Ball Rs.1100 |" << "\n";
cout << "| 5. Yoga Mats Rs.950 |" << "\n";
cout << "| 6. Geared Cycles Rs.25,500 |" << "\n";
cout << "| 7. Bicycle Helmets Rs. 2000 |" << "\n";
cout << "| 8. Fishing Kit Rs. 6800 |" << "\n";
cout << "| 9. Binoculars Rs. 2500 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Retrun Back |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v25.choice;
if(v25.choice==000){
system("CLS");
goto catg;
}
else if(v25.choice>=1&&v25.choice<=9){
cout<<"Enter the quantity you want to buy: ";
cin>>v25.q;
system("CLS");
total+=(v25.q)*sport(v25.choice,v25.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto sport;
}
d19:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v25.ch;
if(v25.ch=='y'||v25.ch=='Y'){
system("CLS");
goto sport;
}
else if(v25.ch=='n'||v25.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d19;
}
} // Sports and outdoor
else if(v2.choice==6){
variable v26;
food:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Food |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Vegetables |" << "\n";
cout << "| 2. Fruits |" << "\n";
cout << "| 3. Dairy |" << "\n";
cout << "| 4. Frozen Food |" << "\n";
cout << "| 5. Bakery |" << "\n";
cout << "| 6. Beverages |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to retrun back |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Select your desired option: ";
cin>>v26.choice;
if(v26.choice==000){
system("CLS");
goto catg;
}
else if (v26.choice==1){
variable v27;
veg:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Vegetables |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Green Chili (250g) Rs. 20 |" << "\n";
cout << "| 2. Cucumber (500g) Rs. 35 |" << "\n";
cout << "| 3. Cabbage (1 Piece) Rs. 80 |" << "\n";
cout << "| 4. Raddish (1KG) Rs. 50 |" << "\n";
cout << "| 5. Potato (500g) Rs. 30 |" << "\n";
cout << "| 6. Garlic (250g) Rs. 160 |" << "\n";
cout << "| 7. Ginger (250g) Rs. 120 |" << "\n";
cout << "| 8. Pea (500g) Rs. 100 |" << "\n";
cout << "| 9. Capsicum (500g) Rs. 65 |" << "\n";
cout << "| 10. Onion (1KG) Rs. 180 |" << "\n";
cout << "| 11. Tomato (500g) Rs. 30 |" << "\n";
cout << "| 12. Lemon (250g) Rs. 30 |" << "\n";
cout << "| 13. Brinjal Round (500g) Rs. 60 |" << "\n";
cout << "| 14. Peppermint (1 Bundle) Rs. 15 |" << "\n";
cout << "| 15. Cilantro (1 Bundle) Rs. 15 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v27.choice;
if(v27.choice==000){
system("CLS");
goto food;
}
else if(v27.choice==111){
system("CLS");
goto catg;
}
else if(v27.choice>=1&&v27.choice<=15){
cout<<"Enter quantity you want to buy: ";
cin>>v27.q;
system("CLS");
total+= (v27.q)*veg(v27.choice,v27.q,pname,pprice,pq);
}
else {
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto veg;
}
d20:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v27.ch;
if(v27.ch=='y'||v27.ch=='Y'){
system("CLS");
goto veg;
}
else if(v27.ch=='n'||v27.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d20;
}
}//Vegetables
else if (v26.choice==2){
variable v28;
fruit:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Fruits |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Melon (1KG) Rs. 110 |" << "\n";
cout << "| 2. Green Apple (1KG) Rs. 230 |" << "\n";
cout << "| 3. Sweet Lime (1KG) Rs. 130 |" << "\n";
cout << "| 4. Banana (12-Pieces) Rs. 100 |" << "\n";
cout << "| 5. Grape Fruit (1-Piece) Rs. 30 |" << "\n";
cout << "| 6. Guava (500g) Rs. 90 |" << "\n";
cout << "| 7. Golden Aapple (1KG) Rs. 300 |" << "\n";
cout << "| 8. Papaya (1KG) Rs. 170 |" << "\n";
cout << "| 9. Grapes (500g) Rs. 230 |" << "\n";
cout << "| 10. Kiwi (1KG) Rs. 650 |" << "\n";
cout << "| 11. Orange (6-Pieces) Rs. 120 |" << "\n";
cout << "| 12. Pomegranate (1KG) Rs. 420 |" << "\n";
cout << "| 13. Chaunsa Mango (5KG) Rs. 3000 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v28.choice;
if(v28.choice==000){
system("CLS");
goto food;
}
else if(v28.choice==111){
system("CLS");
goto catg;
}
else if (v28.choice>=1&&v28.choice<=13){
cout<<"Enter quantity you want to buy: ";
cin>>v28.q;
system("CLS");
total+=(v28.q)*fruit(v28.choice,v28.q,pname,pprice,pq);
}
else{
cout<<"Invaid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto fruit;
}
d21:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v28.ch;
if(v28.ch=='y'||v28.ch=='Y'){
system("CLS");
goto fruit;
}
else if(v28.ch=='n'||v28.ch=='N'){
system("CLS");
goto end;
}
else{
cout<<"Invalid Input. Please enter valid input, Thank you"<<"\n";
system("PAUSE");
system("CLS");
goto d21;
}
}//Fruits
else if (v26.choice==3){
variable v29;
dairy:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Dairy |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Olper's Milk (1.5L) Rs. 2800 |" << "\n";
cout << "| 2. Milkpack Dairy Cream (200ml) Rs. 210 |" << "\n";
cout << "| 3. Eggs (12-Pack) Rs. 430 |" << "\n";
cout << "| 4. Adma's Butter (200g) Rs. 450 |" << "\n";
cout << "| 5. Nestle Yougart (400g) Rs. 230 |" << "\n";
cout << "| 6. Adam's Cheese Slices (200g) Rs. 530 |" << "\n";
cout << "| 7. Mozzarella Cheese (200g) Rs. 600 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v29.choice;
if(v29.choice==000){
system("CLS");
goto food;
}
else if(v29.choice==111){
system("CLS");
goto catg;
}
else if(v29.choice>=1&&v29.choice<=7){
cout<<"Enter the quantity you want to buy: ";
cin>>v29.q;
system("CLS");
total+=(v29.q)*dairy(v29.choice,v29.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input. Please enter valid Input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto dairy;
}
d22:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v29.ch;
if(v29.ch=='y'||v29.ch=='Y'){
system("CLS");
goto dairy;
}
else if(v29.ch=='n'||v29.ch=='N'){
system("CLS");
goto end;
}
else {
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d22;
}
}//dairy
else if (v26.choice==4){
variable v30;
froze:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Frozen Food |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Sabroso Chiken Breast (1KG) Rs. 1200 |" << "\n";
cout << "| 2. K&N's Chicken Nuggets (45-Pack) Rs. 1170 |" << "\n";
cout << "| 3. K&N's Deline Sausages (32-Pack) Rs. 1135 |" << "\n";
cout << "| 4. K&N's Chicken Samosa (30-Pack) Rs. 800 |" << "\n";
cout << "| 5. Beef Qeema (500g) Rs. 620 |" << "\n";
cout << "| 6. Beef Cubes (1KG) Rs. 1100 |" << "\n";
cout << "| 7. Omore's Ice Cream Bar (800ml) Rs. 260 |" << "\n";
cout << "| 8. Omore's Ice Cream Tub (1.4L) Rs. 500 |" << "\n";
cout << "| 9. Popsicles (Any Flavour) Rs. 30 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v30.choice;
if(v30.choice==000){
system("CLS");
goto food;
}
else if(v30.choice==111){
system("CLS");
goto catg;
}
else if(v30.choice>=1&&v30.choice<=9){
cout<<"Enter the quantity you want to buy: ";
cin>>v30.q;
system("CLS");
total+=(v30.q)*froze(v30.choice,v30.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto froze;
}
d23:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shoppping? (y/n): ";
cin>>v30.ch;
if(v30.ch=='y'||v30.ch=='Y'){
system("CLS");
goto froze;
}
else if(v30.ch=='n'||v30.ch=='N'){
system("CLS");
goto end;
}
else {
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d23;
}
else if (v26.choice==5){
variable v31;
bake:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Bakery |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Bunny's Wheat Bread (800g) Rs. 200 |" << "\n";
cout << "| 2. Bunny's Rusk Plain (400g) Rs. 190 |" << "\n";
cout << "| 3. Bunny;s Fruit Bun (85g) Rs. 50 |" << "\n";
cout << "| 4. Bake Parlor's Burger Bun (4-Pcs) Rs. 110 |" << "\n";
cout << "| 5. Sponge Cake (2.5 Pounds) Rs. 2900 |" << "\n";
cout << "| 6. Chocolate Chip Cookies (1 pcs) Rs. 160 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v31.choice;
if(v31.choice==000){
system("CLS");
goto food;
}
else if(v31.choice==111){
system("CLS");
goto catg;
}
else if(v31.choice>=1&&v31.choice<=6){
cout<<"Enter the quantity you want to buy: ";
cin>>v31.q;
system("CLS");
total+=(v31.q)*bake(v31.choice,v31.q,pname,pprice,pq);
}
else{
cout<<"Invalid INput, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto bake;
}
d24:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v31.ch;
if(v31.ch=='y'||v31.ch=='Y'){
system("CLS");
goto bake;
}
else if(v31.ch=='n'||v31.ch=='N'){
system("CLS");
goto end;
}
else {
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d24;
}
}// bakery
else if (v26.choice==6){
variable v32;
drink:
system("CLS");
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " << "\n";
cout << "| Bevarages |" << "\n";
cout << "| |" << "\n";
cout << "| 1. Pepsi 1L (6-Pack) Rs. 832 |" << "\n";
cout << "| 2. Coca Cola 1.5L (6-Pack) Rs.900 |" << "\n";
cout << "| 3. Aquafina 1.5L (6-Pack) Rs. 505 |" << "\n";
cout << "| 4. Nestle Milo Bottle (6-Pack) Rs. 840 |" << "\n";
cout << "| 5. Slice Juice 1L (6-Pack) Rs. 1050 |" << "\n";
cout << "| 6. Fruita Vital Mango 200ml (6-Pack) Rs. 393 |" << "\n";
cout << "| |" << "\n";
cout << "| Press 000 to Return Back or 111 to Category Section |" << "\n";
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << "\n";
cout<<"\n";
cout<<"Choose your product: ";
cin>>v32.choice;
if(v32.choice==000){
system("CLS");
goto food;
}
else if(v32.choice==111){
system("CLS");
goto catg;
}
else if(v32.choice>=1&&v32.choice<=6){
cout<<"Enter the quantity you want to buy: ";
cin>>v32.q;
system("CLS");
total+=(v32.q)*drink(v32.choice,v32.q,pname,pprice,pq);
}
else{
cout<<"Invalid Input, Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto drink;
}
d25:
cout<<"\n";
cout<<"Amount added to your bill: "<<total<<"\n"<<"\n";
cout<<"Do you want to continue shopping? (y/n): ";
cin>>v32.ch;
if(v32.ch=='y'||v32.ch=='Y'){
system("CLS");
goto drink;
}
else if(v32.ch=='n'||v32.ch=='N'){
system("CLS");
goto end;
}
else {
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto d25;
}
}//Beverages
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto food;
}
}//food
else{
cout<<"Invalid Input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto catg;
}
}//bill
else if(v1.ch=='e'||v1.ch=='E'){
goto end;
}// end program
else {
cout<<"Invalid input. Please enter valid input, Thank you."<<"\n";
system("PAUSE");
system("CLS");
goto main;
}//MAIN MENU
end:
float disc=0;
int n=1;
if(total>=20000&&total<=40000){
disc=total*.2;
total=total-disc;
}
else if(total>40000&&total<=60000){
disc=total*.4;
total=total-disc;
}
else if(total>60000){
disc=total*.5;
total=total-disc;
}
return 0;
}