Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<conio.h>
- #include<string.h>
- using namespace std;
- main ()
- {
- int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;
- string pass;
- string user;
- string registerp;
- string registeru;
- Start:
- system ("clear");
- cout<<"\t\t _________________________________"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| Welcome to LaShoppee |"<<endl;
- cout<<"\t\t|_________________________________|"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Shop Now!! |"<<endl;
- cout<<"\t\t| 2. Whats This? |"<<endl;
- cout<<"\t\t| 3. Exit |"<<endl;
- cout<<"\t\t|_________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>a;
- system ("clear");
- if (a>3)
- {
- goto Start;
- }
- switch (a)
- {
- case 1:
- system ("clear");
- Shop:
- system ("clear");
- cout<<"\t\t _________________________________________"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Categories: |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Devices and Technology |"<<endl;
- cout<<"\t\t| 2. Clothes |"<<endl;
- cout<<"\t\t| 3. Accesories |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>b;
- if (b>3)
- {
- goto Shop;
- }
- if (b==1)
- {
- goto Case1;
- }
- if (b==2)
- {
- goto Case2;
- }
- if (b==3)
- {
- goto Case3;
- }
- case 2:
- system ("clear");
- Explanation:
- cout<<"\t\t LaShoppee Express is an online site where you can buy and sell"<<endl;
- cout<<"\t\t We secure our customers’ safety by keeping the information between the buyer and the seller"<<endl;
- cout<<"\t\t We also offer affordable transactions to our beloved customers"<<endl;
- cout<<"\t\t This LaShoppee Express will surely help you to shop easier and it is less hassle"<<endl;
- cout<<"\t\t because you just need a technology to shop online. In here, what you see is what you get."<<endl;
- cout<<"\t\t The customers won’t regret using this online shopping site"<<endl;
- cout<<"\t\t We the creators of LaShoppee Express, provided you a user-friendly online shopping site."<<endl;
- return 0;
- case 3:
- system ("clear");
- End:
- cout<<"\n\t\t :::::::::::::::::::::"<<endl;
- cout<<"\t\t Program Closed "<<endl;
- cout<<"\t\t :::::::::::::::::::::"<<endl;
- return 0;
- }
- Case1:
- system ("clear");
- cout<<"\t\t _________________________________________"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Devices |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Item Price |"<<endl;
- cout<<"\t\t| 1. Cellphone $120 |"<<endl;
- cout<<"\t\t| 2. Laptop $250 |"<<endl;
- cout<<"\t\t| 3. Computer $1000 |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>c;
- if (c>3)
- {
- goto Case1;
- }
- if (c==1)
- {
- goto D1;
- }
- if (c==2)
- {
- goto D2;
- }
- if (c==3)
- {
- goto D3;
- }
- Case2:
- system ("clear");
- cout<<"\t\t _________________________________________"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Clothes |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Item Price |"<<endl;
- cout<<"\t\t| 1. Item 1 $20 |"<<endl;
- cout<<"\t\t| 2. Item 2 $50 |"<<endl;
- cout<<"\t\t| 3. Item 3 $70 |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>d;
- if (d>3)
- {
- goto Case2;
- }
- if (d==1)
- {
- goto C1;
- }
- if (d==2)
- {
- goto C2;
- }
- if (d==3)
- {
- goto C3;
- }
- Case3:
- system ("clear");
- cout<<"\t\t ___________________________________________"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Accesories |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t| Item Price |"<<endl;
- cout<<"\t\t| 1. Item 1 $15 |"<<endl;
- cout<<"\t\t| 2. Item 2 $17 |"<<endl;
- cout<<"\t\t| 3. Item 3 $25 |"<<endl;
- cout<<"\t\t|___________________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>e;
- if (e>3)
- {
- goto Case3;
- }
- if (e==1)
- {
- goto A1;
- }
- if (e==2)
- {
- goto A2;
- }
- if (e==3)
- {
- goto A3;
- }
- D1:
- system ("clear");
- cout<<"\t\t ________________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| Cellphone - $120 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>f;
- if (f>2)
- {
- goto D1;
- }
- if (f==1)
- {
- goto Checkout;
- }
- if (f==2)
- {
- goto Case1;
- }
- D2:
- system ("clear");
- cout<<"\t\t ________________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| Laptop - $250 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>g;
- if (g>2)
- {
- goto D2;
- }
- if (g==1)
- {
- goto Checkout;
- }
- if (g==2)
- {
- goto Case1;
- }
- D3:
- system ("clear");
- cout<<"\t\t ________________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| Computer - $1000 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>h;
- if (h>2)
- {
- goto D3;
- }
- if (h==1)
- {
- goto Checkout;
- }
- if (h==2)
- {
- goto Case1;
- }
- C1:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 1 - $20 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>i;
- if (i>2)
- {
- goto C1;
- }
- if (i==1)
- {
- goto Checkout;
- }
- if (i==2)
- {
- goto Case2;
- }
- C2:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 2 - $50 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>j;
- if (j>2)
- {
- goto C2;
- }
- if (j==1)
- {
- goto Checkout;
- }
- if (j==2)
- {
- goto Case2;
- }
- C3:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 3 - $70 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>k;
- if (k>2)
- {
- goto C3;
- }
- if (k==1)
- {
- goto Checkout;
- }
- if (k==2)
- {
- goto Case2;
- }
- A1:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 1 - $15 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>l;
- if (l>2)
- {
- goto A1;
- }
- if (l==1)
- {
- goto Checkout;
- }
- if (l==2)
- {
- goto Case3;
- }
- A2:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 2 - $17 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>m;
- if (m>2)
- {
- goto A2;
- }
- if (m==1)
- {
- goto Checkout;
- }
- if (m==2)
- {
- goto Case3;
- }
- A3:
- system ("clear");
- cout<<"\t\t ______________________________"<<endl;
- cout<<"\t\t| Are you sure |"<<endl;
- cout<<"\t\t| to add this to your cart? |"<<endl;
- cout<<"\t\t| item 3 - $25 |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| 1. Yes |"<<endl;
- cout<<"\t\t| 2. No |"<<endl;
- cout<<"\t\t|________________________________|"<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>n;
- if (n>2)
- {
- goto A3;
- }
- if (n==1)
- {
- goto Checkout;
- }
- if (n==2)
- {
- goto Case3;
- }
- Checkout:
- system ("clear");
- cout<<"\t\t Sucessfully added to the cart"<<endl;
- cout<<"\t\t Would you like to check out?"<<endl;
- cout<<"\t\t "<<endl;
- cout<<"\t\t 1. Yes "<<endl;
- cout<<"\t\t 2. No "<<endl;
- cout<<"\t\t "<<endl;
- cout<<"\t\t Enter your choice: ";
- cin>>p;
- if (p>2)
- {
- goto Checkout;
- }
- if (p==1)
- {
- goto Login;
- }
- if (p==2)
- {
- goto Shop;
- }
- Login:
- system("clear");
- cout<<" "<<endl;
- cout<<"1. Log in"<<endl;
- cout<<"2. Register"<<endl;
- cout<<" "<<endl;
- cout<<"Enter your choice: ";
- cin>>a;
- if (a>2)
- {
- goto Start;
- }
- switch (a)
- {
- case 1:
- Login1:
- system ("clear");
- cout<<"Login"<<endl;
- cout<<"Username : ";
- cin>>user;
- cout<<"Password : ";
- cin>>pass;
- if (user==registeru)
- {
- if (pass==registerp)
- {
- goto Continue;
- }
- else
- {
- cout<<"Password does not match";
- }
- }
- else
- {
- cout<<"Username not registered";
- goto Login;
- }
- case 2:
- Register1:
- system("clear");
- cout<<"Register"<<endl;
- cout<<"Username : ";
- cin>>registeru;
- cout<<"Password : ";
- cin>>registerp;
- cout<<"Registered Succesfully!"<<endl;
- goto Login2;
- Login2:
- system ("clear");
- cout<<"Registered Succesfully!"<<endl;
- cout<<" "<<endl;
- cout<<"Login"<<endl;
- cout<<"Username : ";
- cin>>user;
- cout<<"Password : ";
- cin>>pass;
- if (user==registeru)
- {
- if (pass==registerp)
- {
- goto Continue;
- }
- else
- {
- cout<<"Password does not match";
- }
- }
- else
- {
- cout<<"Username not registered";
- goto Login;
- }
- Continue:
- cout<<"Succesfully Logged in!, Have a nice day"<<endl;
- cin>>b;
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement