Sunteți pe pagina 1din 12

#include <iostream>

#include <conio.h>
#include<string>
#include <windows.h>
using namespace std;

char Fname[2]={};
char Lname [100]={};
char mobile [100]={};
char state[100]={};
char town[100]={};
char brgy [100]={};
int pc_;//PRODUCT CODE
float n=0, y=0;//QUANTITY
float pr;//PRICE
float pr1, pr2, pr3, pr4, pr5, pr6, pr7, pr8, pr9, pr10, pr11, pr12, pr13,
pr14, pr15, pr16, pr17, pr18, pr19, pr20, pr21, pr22, pr23, pr24, pr25, pr26,
pr27, pr28, pr29, pr30;//PRICE
float pn1=1, pn2=1, pn3=1, pn4=1, pn5=1, pn6=1, pn7=1, pn8=1, pn9=1, pn10=1,
pn11=1, pn12=1, pn13=1, pn14=1, pn15=1, pn16=1, pn17=1, pn18=1, pn19=1,
pn20=1, pn21=1, pn22=1, pn23=1, pn24=1, pn25=1, pn26=1, pn27=1, pn28=1,
pn29=1, pn30=1;

int main ()
{
system ("color 0B");
cout<<"\n\n";
cout<<" 888 888 88888888888 888
88888888888 88888888888 888 888 888888888888 88888888888 \n";
cout<<" 888 888 888 88888888888 888
888888888888 8888888888888 8888 8888 888888888888 888888888
\n";
cout<<" 888 888 888 888 888 888
888 888 88888 88888 888 8888888 \n";
cout<<" 888 888 888 88888888888 888 888
888 888 8888888888888 888888888888 88888 \n";
cout<<" 888 888 888 88888888888 888 888
888 888 8888888888888 888888888888 888 \n";
cout<<" 888 888 888 888 888 888
888 888 8888 88 888 888 \n";
cout<<" 8888888888888 88888888888 888888888888
8888888888888 8888888888888 8888 888 888888888888 88888
\n";
cout<<" 88888888888 88888888888 888888888888
888888888888 88888888888 8888 888 888888888888 88888
\n\n";

cout<<" 88888888888 88888888888


888888 88888888888 88888888888 88888 888 \n";
cout<<" 8888888888888 88888888888
88888888 888888888888 8888888888888 888888 888 \n";
cout<<" 888 888 888 8888
8888 888 888 888 8888888 888 \n";
cout<<" 888 888 888 8888
8888 888 88888 888 888 888888888 888 \n";
cout<<" 888 888 888 888888888888
888 888888 888 888 888 888888888 \n";
cout<<" 888 888 888 888888888888
888 888 888 888 888 8888888 \n";
cout<<" 8888888888888 88888888888 888 888
888888888888 8888888888888 888 888888 \n";
cout<<" 888888888888 88888888888 888 888
8888888888 88888888888 888 88888 \n\n";

cout<<" 888888 888 888


888888888888 8888 8888 8888 88888888888 \n";
cout<<" 88888888 888 888
888888888888 8888 8888 888 888888888888 \n";
cout<<" 8888 8888 888 888
888 8888 8888 88 888 \n";
cout<<" 8888 8888 888 888
888888888888 88888888 88888888888 \n";
cout<<" 888888888888 888 888
888888888888 888888 88888888888 \n";
cout<<" 888888888888 888 888 888
8888 888 \n";
cout<<" 888 888 888888888888 888888888888
888888888888 8888 888888888888 \n";
cout<<" 888 888 888888888888 888888888888
888888888888 8888 88888888888 \n\n";

cout<<" 88888888888 8888888888 8888888888 888


8888 88888888888 888 888 8888888888 88888888888 \n";
cout<<" 888888888888 888888888888 888888888888 888
8888 888888888888 888 888 888888888888 888888888888 \n";
cout<<" 888 888 888 888 888 888 888
8888 888 888 888 888 888 888 888 \n";
cout<<" 888888888888 888 888 888 888
888888888 88888888888 888888888888 888 888 888 888
\n";
cout<<" 8888888888 888 888 888 888
8888888 888888888888 888888888888 888 888 888888888888 \n";
cout<<" 888888888888 888 888 888 888
88888888 88888888888 888888888888 888 888 88888888888 \n";
cout<<" 888 888 888 888 888 888 888
8888 888 888 888 888 888 888 \n";
cout<<" 888888888888 888888888888 888888888888 888
8888 888888888888 888 888 888888888888 888 \n";
cout<<" 88888888888 8888888888 8888888888 888
8888 88888888888 888 888 8888888888 888 \n";
/*-----------------------------Loading Bar----------------------------*/
{
std::cout << "\n\t\t\t\t\t\t Please Wait While
Loading...\n\n";
for (int i=0; i!=80;i++)
{
Sleep(10);
std::cout << "\xB2";
Sleep(10);
std::cout << "\xDB";
Sleep(10);
std::cout << "\xB2";
Sleep(10);
std::cout << "\xDB";
Sleep(10);
std::cout << "\xB2";
Sleep(10);
std::cout << "\b\b\b \b\b\b\a\a\a";
}
}

A:
system ("color B4");
system ("cls");
cout<<"\n\n
------------------------------------------------------------------------------
-------------------------------------";
cout<<"\n
COSTUMER INFORMATION: ";
cout<<"\n
------------------------------------------------------------------------------
--------------------------------------";

//Costumer Details

cout<<"\n\n\t\tFIRST NAME: \n";


cout<<"\t\t";
cin>>Fname;
cout<<"\t\tLAST NAME: \n";
cout<<"\t\t";
cin>>Lname;
cout<<"\t\tMOBILE PHONE NUMBER: \n";
cout<<"\t\t";
cin>>mobile;
cout<<"\t\tSTATE/REGION: \n";
cout<<"\t\t";
cin>>state;
cout<<"\t\tTOWN/CITY: \n";
cout<<"\t\t";
cin>>town;
cout<<"\t\tBARANGAY: \n";
cout<<"\t\t";
cin>>brgy;

cout<<"\n\n\t\tPress any key to continue.";


getch ();

//BILLING ADDRESS
system ("color 0B");
system ("cls");

cout<<"\n---------------------------------------------------------------------
---------------------------";
cout<<"\n BILLING ADDRESS: ";

cout<<"\n---------------------------------------------------------------------
---------------------------";
cout<<"\n\n"<<Lname<<", "<<Fname;
cout<<"\n"<<brgy<<", "<<town<<", "<<state;
cout<<"\n"<<mobile;

//CHOICES VARIABLE X
cout<<"\n\nNOTE: INVALID INPUT WILL RESULT TO TERMINATE THE PROGRAM.";
cout<<"\n\n\nEdit?";
cout<<"\n\n [1] YES";
cout<<"\n [2] PROCEED TO CATALOG\n\n";

double x_;
cout<<endl;
cin>>x_;

if (x_==1)
{
system ("cls");
goto A;
}

else if (x_==2)
{
B:
system ("cls");
system ("color 70");

cout<<"\t---------------------------------------------------------------------
-----------------------------------"<<endl;
cout<<"\t CATALOG
"<<endl;

cout<<"\t---------------------------------------------------------------------
-----------------------------------"<<endl;
cout<<"\t\tPRODUCT CODE: ITEM:
PRICE"<<endl;

cout<<"\t---------------------------------------------------------------------
-----------------------------------"<<endl;
cout<<"\t\t1 Don Quixote by Miguel de Cervantes
| Php 843.03"<<endl;
cout<<"\t\t2 In Search of Lost Time 6 volume
set by Marcel Proust | Php 353.86"<<endl;
cout<<"\t\t3 The Odyssey by Homer
| Php 892.62"<<endl;
cout<<"\t\t4 War and Peace by Leo Tolstoy
| Php 582. 68"<<endl;
cout<<"\t\t5 Moby Dick by Herman Melville
| Php 666.98"<<endl;
cout<<"\t\t6 The Divine Comedy by Dante
Alighieri | Php 989.32"<<endl;
cout<<"\t\t7 Hamlet by William Shakespeare
| Php 155.71"<<endl;
cout<<"\t\t8 The Adventures of Huckleberry Finn
by Mark Twain | Php 11157.75"<<endl;
cout<<"\t\t9 The Great Gatsby by F. Scott
Fitzgerald | Php 247.45"<<endl;
cout<<"\t\t10 The Iliad by Homer
| Php 743.85"<<endl;
cout<<"\t\t11 One Hundred Years of Solitude by
Gabriel Garcia Marquez | Php 1611.50"<<endl;
cout<<"\t\t12 Madame Bovary by Gustave Flaubert
| Php 295.06"<<endl;
cout<<"\t\t13 Crime and Punishment by Fyodor
Dostoyevsky | Php 347.13"<<endl;
cout<<"\t\t14 The Brothers Karamazov by Fyodor
Dostoyevsky | Php 722.53"<<endl;
cout<<"\t\t15 Pride and Prejudice by Jane Austen
| Php 878.24"<<endl;
cout<<"\t\t16 Wuthering Heights by Emily Brontë
| Php 878.24"<<endl;
cout<<"\t\t17 The Sound and the Fury by William
Faulkner | Php 743.85"<<endl;
cout<<"\t\t18 Lolita by Vladimir Nabokov
| Php 793.44.40"<<endl;
cout<<"\t\t19 Nineteen Eighty Four by George
Orwell | Php 495.40"<<endl;
cout<<"\t\t20 Alice's Adventures in Wonderland
by Lewis Carroll | Php 155.96"<<endl;
cout<<"\t\t21 To the Lighthouse by Virginia
Woolf | Php 407.13"<<endl;
cout<<"\t\t22 Great Expectations by Charles
Dickens (Bridge series) | Php 2279.16"<<endl;
cout<<"\t\t23 Anna Karenina by Leo Tolstoy
| Php 942.21"<<endl;
cout<<"\t\t24 The Catcher in the Rye by J. D.
Salinger | Php 235"<<endl;
cout<<"\t\t25 Middlemarch by George Eliot
| Php 101.16"<<endl;
cout<<"\t\t26 Gulliver's Travels by Jonathan
Swift | Php 496.89"<<endl;
cout<<"\t\t27 The Aeneid by Virgil
| Php 743.85"<<endl;
cout<<"\t\t28 Heart of Darkness by Joseph Conrad
| Php 445.81"<<endl;
cout<<"\t\t29 One Thousand and One Nights
| Php 1584.40"<<endl;
cout<<"\t\t30 The Canterbury Tales by Geoffrey
Chaucer | Php 822.70"<<endl;

cout<<"-----------------------------------------------------------------------
----------------------------------"<<endl;

cout<<"\nNOTE: ENTERING INVALID CODE MAY RESULT TO TERMINATION OF


SYSTEM\n";
cout<<"\n\n\tEnter product code: ";
cin>>pc_;

if (pc_>30 || pc_<=0)
{
cout<<"You have entered an invalid code.\n";
cout<<"Try again?";
cout<<"\n[1] YES";
cout<<"\n[2] TERMINATE TRANSACTION.\n";

int x;
cin>>x;

if (x==1)
{
system ("cls");
goto B;
}
else if (x==2)
{
system ("cls");
cout<<"Thank you for the visit.";
getch();
return 0;
}
else
{
system ("cls");

cout<<"\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t\t------------------\n";
cout<<"\t\t\t\t\t\t\t\t\tTRANSACTION FAILED\n";
cout<<"\t\t\t\t\t\t\t\t\t------------------\n";
getch ();
return 0;
}
}

else if (pc_<31 || pc_>0)


{
cout<<"\tQuantity: ";
cin>>n;

C:
switch (pc_)
{
case 1:
n = pn1 * n;
y += n;
pr1 = n*843.03;
pn1 = y;
goto D;
break;
case 2:
n = pn2 * n;
pr2 = n*353.86;
pn2 = n;
goto D;
break;

case 3:
n = pn3 * n;
pr3 = n*892.62;
pn3 = n;
goto D;
break;

case 4:
n = pn4 * n;
pr4 = n*582.68;
pn4 = n;
goto D;
break;

case 5:
n = pn5 * n;
pr5 = n*666.98;
pn5 = n;
goto D;
break;
case 6:
n = pn6 * n;
pr6 = n*989.32;
pn6 = n ;
goto D;
break;

case 7:
n = pn7 *n;
pr7 = n*155.71;
pn7 = n;
goto D;
break;

case 8:
n = pn8 *n;
pr8 = n*11157.71;
pn8 = n;
goto D;
break;

case 9:
n = pn9 * n;
pr9 = n*247.45;
pn9 = n;
goto D;
break;

case 10:
n = pn10 * n;
pr10 = n*743.85;
pn10 = n;
goto D;
break;

case 11:
n = n * pn11;
pr11 = n*1611.50;
pn11 = n;
goto D;
break;

case 12:
n = n*pn12;
pr12 = n*295.06;
pn12= n;
goto D;
break;

case 13:
n = n*pn13;
pr13 = n*347.13;
pn13= n;
goto D;
break;

case 14:
n = n*pn14;
pr14 = n*722.53;
pn14= n;
goto D;
break;

case 15:
n = n * pn15;
pr15 = n*878.24;
pn15 = n;
goto D;
break;

case 16:
n = n* pn16;
pr16 = n*878.24;
pn16 = n;
goto D;
break;

case 17:
n = n * pn17;
pr17 = n*743.85;
pn17 = n;
goto D;
break;

case 18:
n= n * pn18;
pr18 = n*793.44;
pn18 = n;
goto D;
break;

case 19:
n = n* pn19;
pr19 = n*495.40;
pn19 = n;
goto D;
break;

case 20:
n = n * pn20;
pr20 = n*155.96;
pn20 = n;
goto D;
break;

case 21:
n = n* pn21;
pr21 = n*407.13;
pn21 = n;
goto D;
break;

case 22:
n = n*pn22;
pr22 = n*2279.16;
pn22 = pr22;
goto D;
break;

case 23:
n = n * pn23;
pr23 = n*942.21;
pn23 = n;
goto D;
break;

case 24:
n = n*pn24;
pr24 = n*235;
pn24 = n;
goto D;
break;

case 25:
n = n *pn25;
pr25 = n*101.16;
pn25 = n;
goto D;
break;

case 26:
n = n*pn26;
pr26 = n*496.89;
pn26 = n;
goto D;
break;

case 27:
n = n * pn27;
pr27 = n*743.81;
pn27= n;
goto D;
break;

case 28:
n = n * pn28;
pr28 = n*445.81;
pn28 = n;
goto D;
break;

case 29:
n = n*pn29;
pr29 = n*1584.40;
pn29= n;
goto D;
break;
case 30:
n = n * pn30;
pr30 = n*822.70;
pn30 = n;
goto D;
break;

default:
cout<<"You have entered an invalid code.\n";
cout<<"Try again?";
cout<<"\n[1] YES";
cout<<"\n[2] TERMINATE TRANSACTION.\n";

int q;
cin>>q;

if (q==1)
{
system ("cls");
goto B;
}

else
{
system ("cls");
cout<<"You have entered an invalid
code.\n";
getch ();
return 0;
}
}
D:
cout<<"\n\n\t*****Item succesfully added to you
bag!******";
cout<<"\n\nContinue shopping?";
cout<<"\n\n[1] YES";
cout<<"\n[2] TERMINATE TRANSACTION.";
cout<<"\n[3] CHECKOUT\n";

int w;
cin>>w;
if (w==1)
{
system ("cls");
goto B;
}

else if (w==2)
{
system ("cls");
cout<<"Thank you for visiting our shop!";
getch ();
return 0;
}
else if (w==3)
{
goto CHECKOUT;
}
else
{
//PANO PAG IBANG NUMBER ANG ININPUT.
}
CHECKOUT:
system ("cls");

cout<<"-----------------------------------------------------------------------
--------------------------------------------------------------";
cout<<"
PURCHASED ITEMS: ";
cout<<"\n---------------------------------------------------------------------
----------------------------------------------------------------";
cout<<"\n\nITEM:
QUANTITY:\t\tPRICE:\n\n";
if (pr1!=0)
{
cout<<"\nDon Quixote by Miguel de
Cervantes "<<pn1<<"\t\t"<<"Php "<<pr1;
}
if (pr2!=0)
{
cout<<"\nIn Search of Lost Time 6 volume
set by Marcel Proust "<<pn2<<"\t\t"<<"Php "<<pr2;
}
if (pr3!=0)
{
cout<<"\nThe Odyssey by Homer
"<<pn3<<"\t\t"<<"Php "<<pr3;
}
if (pr4!=0)
{
cout<<"\nWar and Peace by Leo Tolstoy
"<<pn4<<"\t\t"<<"Php "<<pr4;
}
if (pr5!=0)
{
cout<<"\nMoby Dick by Herman Melville
"<<pn5<<"\t\t"<<"Php "<<pr5;
}
if (pr6!=0)
{
cout<<"\nThe Divine Comedy by Dante
Alighieri "<<pn6<<"\t\t"<<"Php "<<pr6;
}
if (pr7!=0)
{
cout<<"\nHamlet by William Shakespeare
"<<pn7<<"\t\t"<<"Php "<<pr7;
}
if (pr8!=0)
{
cout<<"\nThe Adventures of Huckleberry
Finn by Mark Twain "<<pn8<<"\t\t"<<"Php "<<pr8;
}
if (pr9!=0)
{
cout<<"\nThe Great Gatsby by F. Scott
Fitzgerald "<<pn9<<"\t\t"<<"Php "<<pr9;
}
if (pr10!=0)
{
cout<<"\nThe Iliad by Homer
"<<pn10<<"\t\t"<<"Php "<<pr10;
}
if (pr11!=0)
{
cout<<"\nOne Hundred Years of Solitude by
Gabriel Garcia Marquez "<<pn11<<"\t\t"<<"Php "<<pr11;
}
if (pr12!=0)
{
cout<<"\n Madame Bovary by Gustave
Flaubert "<<pn7<<"\t\t"<<"Php "<<pr7;
}
if (pr13!=0)
{
cout<<"\nCrime and Punishment by Fyodor
Dostoyevsky "<<pn13<<"\t\t"<<"Php "<<pr13;
}
if (pr14!=0)
{
cout<<"\nThe Brothers Karamazov by Fyodor
Dostoyevsky "<<pn14<<"\t\t"<<"Php "<<pr14;
}
if (pr15!=0)
{
cout<<"\nPride and Prejudice by Jane
Austen "<<pn15<<"\t\t"<<"Php "<<pr15;
}
if (pr16!=0)
{
cout<<"\nWuthering Heights by Emily Brontë
"<<pn16<<"\t\t"<<"Php "<<pr16;
}
if (pr17!=0)
{
cout<<"\nSound and the Fury by William
Faulkner "<<pn17<<"\t\t"<<"Php "<<pr17;
}
if (pr18!=0)
{
cout<<"\nLolita by Vladimir Nabokov
"<<pn18<<"\t\t"<<"Php "<<pr18;
}
if (pr19!=0)
{
cout<<"\nNineteen Eighty Four by George
Orwell "<<pn19<<"\t\t"<<"Php "<<pr19;
}
if (pr20!=0)
{
cout<<"\nAlice's Adventures in Wonderland
by Lewis Carroll "<<pn20<<"\t\t"<<"Php "<<pr20;
}
if (pr21!=0)
{
cout<<"\nTo the Lighthouse by Virginia
Woolf "<<pn21<<"\t\t"<<"Php "<<pr21;
}
if (pr22!=0)
{
cout<<"\nGreat Expectations by Charles
Dickens (Bridge series) "<<pn22<<"\t\t"<<"Php "<<pr22;
}
if (pr23!=0)
{
cout<<"\nAnna Karenina by Leo Tolstoy
"<<pn23<<"\t\t"<<"Php "<<pr23;
}
if (pr24!=0)
{
cout<<"\nThe Catcher in the Rye by J. D.
Salinger "<<pn24<<"\t\t"<<"Php "<<pr24;
}
if (pr25!=0)
{
cout<<"\nMiddlemarch by George Eliot
"<<pn25<<"\t\t"<<"Php "<<pr25;
}
if (pr26!=0)
{
cout<<"\nGulliver's Travels by Jonathan
Swift "<<pn26<<"\t\t"<<"Php "<<pr26;
}
if (pr27!=0)
{
cout<<"\nThe Aeneid by Virgil
"<<pn27<<"\t\t"<<"Php "<<pr27;
}
if (pr28!=0)
{
cout<<"\nHeart of Darkness by Joseph
Conrad "<<pn28<<"\t\t"<<"Php "<<pr28;
}
if (pr29!=0)
{
cout<<"\nOne Thousand and One Nights
(volume 1) "<<pn29<<"\t\t"<<"Php "<<pr29;
}
if (pr30!=0)
{
cout<<"\nThe Canterbury Tales by Geoffrey
Chaucer "<<pn30<<"\t\t"<<"Php "<<pr30;
}

float
sub=pr1+pr2+pr3+pr4+pr5+pr6+pr7+pr8+pr9+pr10+pr11+pr12+pr13+pr14+pr15+pr16+pr1
7+pr18+pr19+pr20+pr21+pr22+pr23+pr24+pr25+pr26+pr27+pr28+pr29+pr30;
cout<<"\n\n\tSUBTOTAL: \t"<<sub;
cout<<"\t\t\t\tSHIPPING COST: \t Php 50.00";

cout<<"\n---------------------------------------------------------------------
------------------------------------------";
cout<<"\n\tTOTAL AMOUNT: \t"<<"Php "<<sub+50;

cout<<"\n---------------------------------------------------------------------
------------------------------------------";

cout<<"\n\n\n[1] CONTINUE";
cout<<"\n[2] CANCEL ORDER\n";
//pag ibang number ay pupuntapa rin sa
visiting..

int e;
cin>>e;

if (e==1)
{
goto E;
}
else
{
system ("cls");
cout<<"Thank you for visiting our HRTHRTH
shop!";
getch ();
return 0;
}

E:
system ("cls");
cout<<"-------------------------------------------------------------";
cout<<"\n\t\t\tUSER'S SHIPPING ADDRESS: ";
cout<<"\n-------------------------------------------------------------";
cout<<"\n\n"<<Lname<<", "<<Fname;
cout<<"\n"<<brgy<<", "<<town<<", "<<state;
cout<<"\n"<<mobile;

cout<<"\n\nNOTE: WE ONLY ACCEPT CASH ON DELIVERY AS MODE OF PAYMENT.";

cout<<"\n\n[1] CONFIRM ORDER";


cout<<"\n[2] CANCEL ORDER\n";

int r;
cin>>r;

if (r==1)
{
system ("cls");

cout<<"\n\t\t-----------------------------------------------------------------
--------";
cout<<"\n\t\t\t\tYour order will be delivered within 3-5 working
days.";
cout<<"\n\t\t\t\tThank you for shopping!";
cout<<"\n\t\t-----------------------------------------------------------------
--------";
getch ();
return 0;
}
else
{
system ("cls");

cout<<"\n-------------------------------------------------------------";
cout<<"\t\t\t\t\n\nThank you for visiting our shop!";

cout<<"\n-------------------------------------------------------------";
getch ();
}
}
else
{
system ("cls");
string s;
s="NOTE!!!: INVALID INPUT WILL RERSULT TO TERMINATION OF THE
PROGRAM.";
cout<<"\n INVALID INPUT. \n";
cout<<"[1] PROCEED TO CATALOG. \n";
cout<<"[2] EXIT.\n";
cout<<s;

double x_;
cin>>x_;

if (x_==1)
{
goto B;
}

else if (x_==2)
{
system ("cls");
cout<<"\t\t THANK YOU FOR VISITfghfnNG OUR SHOP.";
}
else
{
system ("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\aTRANSACTION
FAILED.";
getch ();
}
}

getch ();
return 0;
}

S-ar putea să vă placă și