Advertisement
Guest User

LashopeeRosa

a guest
Dec 28th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.17 KB | None | 0 0
  1. #include<iostream>
  2. #include<conio.h>
  3. #include<string.h>
  4. using namespace std;
  5.  
  6. main ()
  7. {
  8. int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;
  9. string pass;
  10. string user;
  11. string registerp;
  12. string registeru;
  13.  
  14. Start:
  15. system ("clear");
  16. cout<<"\t\t _________________________________"<<endl;
  17. cout<<"\t\t| |"<<endl;
  18. cout<<"\t\t| Welcome to LaShoppee |"<<endl;
  19. cout<<"\t\t|_________________________________|"<<endl;
  20. cout<<"\t\t| |"<<endl;
  21. cout<<"\t\t| 1. Shop Now!! |"<<endl;
  22. cout<<"\t\t| 2. Whats This? |"<<endl;
  23. cout<<"\t\t| 3. Exit |"<<endl;
  24. cout<<"\t\t|_________________________________|"<<endl;
  25. cout<<"\t\t Enter your choice: ";
  26. cin>>a;
  27. system ("clear");
  28. if (a>3)
  29. {
  30. goto Start;
  31. }
  32. switch (a)
  33. {
  34. case 1:
  35. system ("clear");
  36. Shop:
  37. system ("clear");
  38. cout<<"\t\t _________________________________________"<<endl;
  39. cout<<"\t\t|___________________________________________|"<<endl;
  40. cout<<"\t\t| Categories: |"<<endl;
  41. cout<<"\t\t|___________________________________________|"<<endl;
  42. cout<<"\t\t| |"<<endl;
  43. cout<<"\t\t| 1. Devices and Technology |"<<endl;
  44. cout<<"\t\t| 2. Clothes |"<<endl;
  45. cout<<"\t\t| 3. Accesories |"<<endl;
  46. cout<<"\t\t|___________________________________________|"<<endl;
  47. cout<<"\t\t Enter your choice: ";
  48. cin>>b;
  49. if (b>3)
  50. {
  51. goto Shop;
  52. }
  53. if (b==1)
  54. {
  55. goto Case1;
  56. }
  57. if (b==2)
  58. {
  59. goto Case2;
  60. }
  61. if (b==3)
  62. {
  63. goto Case3;
  64. }
  65.  
  66. case 2:
  67. system ("clear");
  68. Explanation:
  69. cout<<"\t\t LaShoppee Express is an online site where you can buy and sell"<<endl;
  70. cout<<"\t\t We secure our customers’ safety by keeping the information between the buyer and the seller"<<endl;
  71. cout<<"\t\t We also offer affordable transactions to our beloved customers"<<endl;
  72. cout<<"\t\t This LaShoppee Express will surely help you to shop easier and it is less hassle"<<endl;
  73. cout<<"\t\t because you just need a technology to shop online. In here, what you see is what you get."<<endl;
  74. cout<<"\t\t The customers won’t regret using this online shopping site"<<endl;
  75. cout<<"\t\t We the creators of LaShoppee Express, provided you a user-friendly online shopping site."<<endl;
  76. return 0;
  77.  
  78. case 3:
  79. system ("clear");
  80. End:
  81. cout<<"\n\t\t :::::::::::::::::::::"<<endl;
  82. cout<<"\t\t Program Closed "<<endl;
  83. cout<<"\t\t :::::::::::::::::::::"<<endl;
  84. return 0;
  85. }
  86. Case1:
  87. system ("clear");
  88. cout<<"\t\t _________________________________________"<<endl;
  89. cout<<"\t\t|___________________________________________|"<<endl;
  90. cout<<"\t\t| Devices |"<<endl;
  91. cout<<"\t\t|___________________________________________|"<<endl;
  92. cout<<"\t\t| Item Price |"<<endl;
  93. cout<<"\t\t| 1. Cellphone $120 |"<<endl;
  94. cout<<"\t\t| 2. Laptop $250 |"<<endl;
  95. cout<<"\t\t| 3. Computer $1000 |"<<endl;
  96. cout<<"\t\t|___________________________________________|"<<endl;
  97. cout<<"\t\t Enter your choice: ";
  98. cin>>c;
  99. if (c>3)
  100. {
  101. goto Case1;
  102. }
  103. if (c==1)
  104. {
  105. goto D1;
  106. }
  107. if (c==2)
  108. {
  109. goto D2;
  110. }
  111. if (c==3)
  112. {
  113. goto D3;
  114. }
  115.  
  116. Case2:
  117. system ("clear");
  118. cout<<"\t\t _________________________________________"<<endl;
  119. cout<<"\t\t|___________________________________________|"<<endl;
  120. cout<<"\t\t| Clothes |"<<endl;
  121. cout<<"\t\t|___________________________________________|"<<endl;
  122. cout<<"\t\t| Item Price |"<<endl;
  123. cout<<"\t\t| 1. Item 1 $20 |"<<endl;
  124. cout<<"\t\t| 2. Item 2 $50 |"<<endl;
  125. cout<<"\t\t| 3. Item 3 $70 |"<<endl;
  126. cout<<"\t\t|___________________________________________|"<<endl;
  127. cout<<"\t\t Enter your choice: ";
  128. cin>>d;
  129. if (d>3)
  130. {
  131. goto Case2;
  132. }
  133. if (d==1)
  134. {
  135. goto C1;
  136. }
  137. if (d==2)
  138. {
  139. goto C2;
  140. }
  141. if (d==3)
  142. {
  143. goto C3;
  144. }
  145.  
  146. Case3:
  147. system ("clear");
  148. cout<<"\t\t ___________________________________________"<<endl;
  149. cout<<"\t\t|___________________________________________|"<<endl;
  150. cout<<"\t\t| Accesories |"<<endl;
  151. cout<<"\t\t|___________________________________________|"<<endl;
  152. cout<<"\t\t| Item Price |"<<endl;
  153. cout<<"\t\t| 1. Item 1 $15 |"<<endl;
  154. cout<<"\t\t| 2. Item 2 $17 |"<<endl;
  155. cout<<"\t\t| 3. Item 3 $25 |"<<endl;
  156. cout<<"\t\t|___________________________________________|"<<endl;
  157. cout<<"\t\t Enter your choice: ";
  158. cin>>e;
  159. if (e>3)
  160. {
  161. goto Case3;
  162. }
  163. if (e==1)
  164. {
  165. goto A1;
  166. }
  167. if (e==2)
  168. {
  169. goto A2;
  170. }
  171. if (e==3)
  172. {
  173. goto A3;
  174. }
  175.  
  176. D1:
  177. system ("clear");
  178. cout<<"\t\t ________________________________"<<endl;
  179. cout<<"\t\t| Are you sure |"<<endl;
  180. cout<<"\t\t| to add this to your cart? |"<<endl;
  181. cout<<"\t\t| Cellphone - $120 |"<<endl;
  182. cout<<"\t\t| |"<<endl;
  183. cout<<"\t\t| 1. Yes |"<<endl;
  184. cout<<"\t\t| 2. No |"<<endl;
  185. cout<<"\t\t|________________________________|"<<endl;
  186. cout<<"\t\t Enter your choice: ";
  187. cin>>f;
  188. if (f>2)
  189. {
  190. goto D1;
  191. }
  192. if (f==1)
  193. {
  194. goto Checkout;
  195. }
  196. if (f==2)
  197. {
  198. goto Case1;
  199. }
  200.  
  201. D2:
  202. system ("clear");
  203. cout<<"\t\t ________________________________"<<endl;
  204. cout<<"\t\t| Are you sure |"<<endl;
  205. cout<<"\t\t| to add this to your cart? |"<<endl;
  206. cout<<"\t\t| Laptop - $250 |"<<endl;
  207. cout<<"\t\t| |"<<endl;
  208. cout<<"\t\t| 1. Yes |"<<endl;
  209. cout<<"\t\t| 2. No |"<<endl;
  210. cout<<"\t\t|________________________________|"<<endl;
  211. cout<<"\t\t Enter your choice: ";
  212. cin>>g;
  213. if (g>2)
  214. {
  215. goto D2;
  216. }
  217. if (g==1)
  218. {
  219. goto Checkout;
  220. }
  221. if (g==2)
  222. {
  223. goto Case1;
  224. }
  225.  
  226. D3:
  227. system ("clear");
  228. cout<<"\t\t ________________________________"<<endl;
  229. cout<<"\t\t| Are you sure |"<<endl;
  230. cout<<"\t\t| to add this to your cart? |"<<endl;
  231. cout<<"\t\t| Computer - $1000 |"<<endl;
  232. cout<<"\t\t| |"<<endl;
  233. cout<<"\t\t| 1. Yes |"<<endl;
  234. cout<<"\t\t| 2. No |"<<endl;
  235. cout<<"\t\t|________________________________|"<<endl;
  236. cout<<"\t\t Enter your choice: ";
  237. cin>>h;
  238. if (h>2)
  239. {
  240. goto D3;
  241. }
  242. if (h==1)
  243. {
  244. goto Checkout;
  245. }
  246. if (h==2)
  247. {
  248. goto Case1;
  249. }
  250.  
  251. C1:
  252. system ("clear");
  253. cout<<"\t\t ______________________________"<<endl;
  254. cout<<"\t\t| Are you sure |"<<endl;
  255. cout<<"\t\t| to add this to your cart? |"<<endl;
  256. cout<<"\t\t| item 1 - $20 |"<<endl;
  257. cout<<"\t\t| |"<<endl;
  258. cout<<"\t\t| 1. Yes |"<<endl;
  259. cout<<"\t\t| 2. No |"<<endl;
  260. cout<<"\t\t|________________________________|"<<endl;
  261. cout<<"\t\t Enter your choice: ";
  262. cin>>i;
  263. if (i>2)
  264. {
  265. goto C1;
  266. }
  267. if (i==1)
  268. {
  269. goto Checkout;
  270. }
  271. if (i==2)
  272. {
  273. goto Case2;
  274. }
  275.  
  276. C2:
  277. system ("clear");
  278. cout<<"\t\t ______________________________"<<endl;
  279. cout<<"\t\t| Are you sure |"<<endl;
  280. cout<<"\t\t| to add this to your cart? |"<<endl;
  281. cout<<"\t\t| item 2 - $50 |"<<endl;
  282. cout<<"\t\t| |"<<endl;
  283. cout<<"\t\t| 1. Yes |"<<endl;
  284. cout<<"\t\t| 2. No |"<<endl;
  285. cout<<"\t\t|________________________________|"<<endl;
  286. cout<<"\t\t Enter your choice: ";
  287. cin>>j;
  288. if (j>2)
  289. {
  290. goto C2;
  291. }
  292. if (j==1)
  293. {
  294. goto Checkout;
  295. }
  296. if (j==2)
  297. {
  298. goto Case2;
  299. }
  300.  
  301. C3:
  302. system ("clear");
  303. cout<<"\t\t ______________________________"<<endl;
  304. cout<<"\t\t| Are you sure |"<<endl;
  305. cout<<"\t\t| to add this to your cart? |"<<endl;
  306. cout<<"\t\t| item 3 - $70 |"<<endl;
  307. cout<<"\t\t| |"<<endl;
  308. cout<<"\t\t| 1. Yes |"<<endl;
  309. cout<<"\t\t| 2. No |"<<endl;
  310. cout<<"\t\t|________________________________|"<<endl;
  311. cout<<"\t\t Enter your choice: ";
  312. cin>>k;
  313. if (k>2)
  314. {
  315. goto C3;
  316. }
  317. if (k==1)
  318. {
  319. goto Checkout;
  320. }
  321. if (k==2)
  322. {
  323. goto Case2;
  324. }
  325.  
  326. A1:
  327. system ("clear");
  328. cout<<"\t\t ______________________________"<<endl;
  329. cout<<"\t\t| Are you sure |"<<endl;
  330. cout<<"\t\t| to add this to your cart? |"<<endl;
  331. cout<<"\t\t| item 1 - $15 |"<<endl;
  332. cout<<"\t\t| |"<<endl;
  333. cout<<"\t\t| 1. Yes |"<<endl;
  334. cout<<"\t\t| 2. No |"<<endl;
  335. cout<<"\t\t|________________________________|"<<endl;
  336. cout<<"\t\t Enter your choice: ";
  337. cin>>l;
  338. if (l>2)
  339. {
  340. goto A1;
  341. }
  342. if (l==1)
  343. {
  344. goto Checkout;
  345. }
  346. if (l==2)
  347. {
  348. goto Case3;
  349. }
  350.  
  351. A2:
  352. system ("clear");
  353. cout<<"\t\t ______________________________"<<endl;
  354. cout<<"\t\t| Are you sure |"<<endl;
  355. cout<<"\t\t| to add this to your cart? |"<<endl;
  356. cout<<"\t\t| item 2 - $17 |"<<endl;
  357. cout<<"\t\t| |"<<endl;
  358. cout<<"\t\t| 1. Yes |"<<endl;
  359. cout<<"\t\t| 2. No |"<<endl;
  360. cout<<"\t\t|________________________________|"<<endl;
  361. cout<<"\t\t Enter your choice: ";
  362. cin>>m;
  363. if (m>2)
  364. {
  365. goto A2;
  366. }
  367. if (m==1)
  368. {
  369. goto Checkout;
  370. }
  371. if (m==2)
  372. {
  373. goto Case3;
  374. }
  375.  
  376. A3:
  377. system ("clear");
  378. cout<<"\t\t ______________________________"<<endl;
  379. cout<<"\t\t| Are you sure |"<<endl;
  380. cout<<"\t\t| to add this to your cart? |"<<endl;
  381. cout<<"\t\t| item 3 - $25 |"<<endl;
  382. cout<<"\t\t| |"<<endl;
  383. cout<<"\t\t| 1. Yes |"<<endl;
  384. cout<<"\t\t| 2. No |"<<endl;
  385. cout<<"\t\t|________________________________|"<<endl;
  386. cout<<"\t\t Enter your choice: ";
  387. cin>>n;
  388. if (n>2)
  389. {
  390. goto A3;
  391. }
  392. if (n==1)
  393. {
  394. goto Checkout;
  395. }
  396. if (n==2)
  397. {
  398. goto Case3;
  399. }
  400.  
  401. Checkout:
  402. system ("clear");
  403. cout<<"\t\t Sucessfully added to the cart"<<endl;
  404. cout<<"\t\t Would you like to check out?"<<endl;
  405. cout<<"\t\t "<<endl;
  406. cout<<"\t\t 1. Yes "<<endl;
  407. cout<<"\t\t 2. No "<<endl;
  408. cout<<"\t\t "<<endl;
  409. cout<<"\t\t Enter your choice: ";
  410. cin>>p;
  411. if (p>2)
  412. {
  413. goto Checkout;
  414. }
  415. if (p==1)
  416. {
  417. goto Login;
  418. }
  419. if (p==2)
  420. {
  421. goto Shop;
  422. }
  423.  
  424.  
  425. Login:
  426. system("clear");
  427. cout<<" "<<endl;
  428. cout<<"1. Log in"<<endl;
  429. cout<<"2. Register"<<endl;
  430. cout<<" "<<endl;
  431. cout<<"Enter your choice: ";
  432. cin>>a;
  433. if (a>2)
  434. {
  435. goto Start;
  436. }
  437. switch (a)
  438. {
  439. case 1:
  440. Login1:
  441. system ("clear");
  442. cout<<"Login"<<endl;
  443. cout<<"Username : ";
  444. cin>>user;
  445. cout<<"Password : ";
  446. cin>>pass;
  447. if (user==registeru)
  448. {
  449. if (pass==registerp)
  450. {
  451. goto Continue;
  452. }
  453. else
  454. {
  455. cout<<"Password does not match";
  456. }
  457. }
  458. else
  459. {
  460. cout<<"Username not registered";
  461. goto Login;
  462. }
  463.  
  464. case 2:
  465. Register1:
  466. system("clear");
  467. cout<<"Register"<<endl;
  468. cout<<"Username : ";
  469. cin>>registeru;
  470. cout<<"Password : ";
  471. cin>>registerp;
  472. cout<<"Registered Succesfully!"<<endl;
  473. goto Login2;
  474.  
  475. Login2:
  476. system ("clear");
  477. cout<<"Registered Succesfully!"<<endl;
  478. cout<<" "<<endl;
  479. cout<<"Login"<<endl;
  480. cout<<"Username : ";
  481. cin>>user;
  482. cout<<"Password : ";
  483. cin>>pass;
  484. if (user==registeru)
  485. {
  486. if (pass==registerp)
  487. {
  488. goto Continue;
  489. }
  490. else
  491. {
  492. cout<<"Password does not match";
  493. }
  494. }
  495. else
  496. {
  497. cout<<"Username not registered";
  498. goto Login;
  499. }
  500.  
  501. Continue:
  502. cout<<"Succesfully Logged in!, Have a nice day"<<endl;
  503. cin>>b;
  504. return 0;
  505. }
  506. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement