Repository navigation
Expand file tree
/
Copy pathCATEGORIAS.java
More file actions
3014 lines (2826 loc) · 139 KB
/
Copy pathCATEGORIAS.java
File metadata and controls
3014 lines (2826 loc) · 139 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class CATEGORIAS {
Scanner ncs = new Scanner(System.in);
double[] precio = {10, 0.18};
double igv, subtotal, totalpagar;
int opcion, cantidad;
//NICOL
ArrayList<String> productos_Espejos = new ArrayList<>();
ArrayList<String> productos_Alfombras = new ArrayList<>();
ArrayList<String> productos_Velas = new ArrayList<>();
ArrayList<String> productos_Menaje = new ArrayList<>();
ArrayList<String> productos_Almacenamiento = new ArrayList<>();
ArrayList<String> productos_Retro = new ArrayList<>();
ArrayList<String> productos_CasaAves = new ArrayList<>();
// PRECIOS
double[] precio_Espejos = {19, 22, 219};
double[] precio_Alfombras = {229, 99.90};
double[] precio_Velas = {9.50, 19.95};
double[] precio_Menaje = {12, 25};
double[] precio_Almacenamiento = {39.90, 49.90};
double[] precio_Retro = {31.90, 21.90};
double[] precio_CasaAves = {12, 30};
// CARRITOS
ArrayList<Integer> carrito_Espejos = new ArrayList<>();
ArrayList<Integer> carrito_Alfombras = new ArrayList<>();
ArrayList<Integer> carrito_Velas = new ArrayList<>();
ArrayList<Integer> carrito_Menaje = new ArrayList<>();
ArrayList<Integer> carrito_Almacenamiento = new ArrayList<>();
ArrayList<Integer> carrito_Retro = new ArrayList<>();
ArrayList<Integer> carrito_CasaAves = new ArrayList<>();
//SUBTOTAL
ArrayList<Double> subtotal_NICOL = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_2 = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_3 = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_4 = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_5 = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_6 = new ArrayList<>();
ArrayList<Double> subtotal_NICOL_7 = new ArrayList<>();
//ARRAYLIST DE MASCOTAS
ArrayList<String> productos_MASCOTAS = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_2 = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_3 = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_4 = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_5 = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_6 = new ArrayList<>();
ArrayList<String> productos_MASCOTAS_7 = new ArrayList<>();
double[] precio_MASCOTAS = { 429.0, 429.0};
double[] precio_MASCOTAS_2 = {279.90, 537.90 };
double[] precio_MASCOTAS_3 = {15.70, 10.90};
double[] precio_MASCOTAS_4 = {199.90, 43.90};
double[] precio_MASCOTAS_5 = {45.50, 44.50};
double[] precio_MASCOTAS_6 = {44.90, 39.90};
double[] precio_MASCOTAS_7 = {99.90, 789.90};
ArrayList<Integer> carrito_MASCOTAS = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_2 = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_3 = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_4 = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_5 = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_6 = new ArrayList<>();
ArrayList<Integer> carrito_MASCOTAS_7 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_2 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_3 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_4 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_5 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_6 = new ArrayList<>();
ArrayList<Double> subtotal_MASCOTAS_7 = new ArrayList<>();
//ARRAYLIST DE JARDINERIA
ArrayList<String> productos_JARDINERIA = new ArrayList<>();
ArrayList<String> productos_JARDINERIA_2 = new ArrayList<>();
double[] precio_JARDINERIA = {15.96, 9.90};
double[] precio_JARDINERIA_2 = {15.96, 27.92};
ArrayList<Integer> carrito_JARDINERIA = new ArrayList<>();
ArrayList<Integer> carrito_JARDINERIA_2 = new ArrayList<>();
ArrayList<Double> subtotal_JARDINERIA = new ArrayList<>();
ArrayList<Double> subtotal_JARDINERIA_2 = new ArrayList<>();
//ARRAYLIST DE SALUD Y DEPORTE
ArrayList<String> productos_SALUD = new ArrayList<>();
ArrayList<String> productos_SALUD_2 = new ArrayList<>();
ArrayList<String> productos_SALUD_3 = new ArrayList<>();
ArrayList<String> productos_SALUD_4 = new ArrayList<>();
ArrayList<String> productos_SALUD_5 = new ArrayList<>();
ArrayList<String> productos_SALUD_6 = new ArrayList<>();
ArrayList<String> productos_SALUD_7 = new ArrayList<>();
double[] precio_SALUD = {15.96, 27.92};
double[] precio_SALUD_2 = {18.0, 61.0};
double[] precio_SALUD_3 = {38.90, 119.99};
double[] precio_SALUD_4 = {87.00, 4.90};
double[] precio_SALUD_5 = {1.70, 10.0};
double[] precio_SALUD_6 = {12.40, 37.90};
double[] precio_SALUD_7 = {12.40, 37.90};
ArrayList<Integer> carrito_SALUD = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_2 = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_3 = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_4 = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_5 = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_6 = new ArrayList<>();
ArrayList<Integer> carrito_SALUD_7 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_2 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_3 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_4 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_5 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_6 = new ArrayList<>();
ArrayList<Double> subtotal_SALUD_7 = new ArrayList<>();
//ARRAYLIST DE OFICINA Y ESCOLAR
ArrayList<String> productos_OFICINA = new ArrayList<>();
ArrayList<String> productos_OFICINA_2 = new ArrayList<>();
ArrayList<String> productos_OFICINA_3 = new ArrayList<>();
ArrayList<String> productos_OFICINA_4 = new ArrayList<>();
ArrayList<String> productos_OFICINA_5 = new ArrayList<>();
ArrayList<String> productos_OFICINA_6 = new ArrayList<>();
double[] precio_OFICINA = {20.90, 54.90};
double[] precio_OFICINA_2 = {129.90, 9.90};
double[] precio_OFICINA_3 = { 9.00, 17.90};
double[] precio_OFICINA_4 = {0.50, 0.10};
double[] precio_OFICINA_5 = {19.90, 59.90};
double[] precio_OFICINA_6 = {11.90, 48.00};
ArrayList<Integer> carrito_OFICINA = new ArrayList<>();
ArrayList<Integer> carrito_OFICINA_2 = new ArrayList<>();
ArrayList<Integer> carrito_OFICINA_3 = new ArrayList<>();
ArrayList<Integer> carrito_OFICINA_4 = new ArrayList<>();
ArrayList<Integer> carrito_OFICINA_5 = new ArrayList<>();
ArrayList<Integer> carrito_OFICINA_6 = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA_2 = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA_3 = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA_4 = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA_5 = new ArrayList<>();
ArrayList<Double> subtotal_OFICINA_6 = new ArrayList<>();
//ARRAYLIST DE DORMITORIO___________________________________________________________________
ArrayList<String> productos_DORMITORIO = new ArrayList<>();
ArrayList<String> productos_DORMITORIO_2 = new ArrayList<>();
double[] precio_DORMITORIO = {657, 681, 1899};
double[] precio_DORMITORIO_2 = {714, 647, 727, 833};
ArrayList<Integer> carrito_DORMITORIO = new ArrayList<>();
ArrayList<Integer> carrito_DORMITORIO_2 = new ArrayList<>();
ArrayList<Double> subtotal_DORMITORIO = new ArrayList<>();
ArrayList<Double> subtotal_DORMITORIO_2 = new ArrayList<>();
//ARRAYLIST DE LIMPIEZA____________________________________________________________________
ArrayList<String> Limpieza1 = new ArrayList<>();
ArrayList<String> Limpieza2 = new ArrayList<>();
ArrayList<String> Limpieza3 = new ArrayList<>();
ArrayList<String> Limpieza4 = new ArrayList<>();
ArrayList<String> Limpieza5 = new ArrayList<>();
double[] precio1 = {8};
double[] precio2 = {11};
double[] precio3 = {30};
double[] precio4 = {31};
double[] precio5 = {39.9};
ArrayList<Double> subtotal_limpieza = new ArrayList<>();
ArrayList<Integer> carrito_limpieza1 = new ArrayList<>();
ArrayList<Integer> carrito_limpieza2 = new ArrayList<>();
ArrayList<Integer> carrito_limpieza3 = new ArrayList<>();
ArrayList<Integer> carrito_limpieza4 = new ArrayList<>();
ArrayList<Integer> carrito_limpieza5 = new ArrayList<>();
//-----------------------------------------------------------------------------------------
//CARRITO GENERAL
ArrayList<Integer> carrito = new ArrayList<>();
//-----------------------------------------------------------------------------------------
public CATEGORIAS() {
//NICOL
productos_Espejos.add("Espejo básico 33.5x5cm");
productos_Espejos.add("Espejo rectangular dorado 30x120cm");
productos_Espejos.add("Espejo Quetzal 194x94 Orange");
productos_Alfombras.add("Alfombra de exterior Cuadros Gris 230x160 Orange");
productos_Alfombras.add("Alfombra de exterior rectangular Yute 90x150cm Orange");
productos_Velas.add("Vela perfumada Misionera Tipo 24 x 2 unidades Amarillo");
productos_Velas.add("Portavela Neutro 12 cm");
// Organización - Subcategorías
productos_Menaje.add("Set de utensilios de cocina Orange");
productos_Menaje.add("Tuppers herméticos de vidrio 3 unidades");
productos_Almacenamiento.add("Cajas de plástico apilables 10L");
productos_Almacenamiento.add("Organizador de ropa 5 divisiones");
// Productos en Tendencia - Subcategorías
productos_Retro.add("Globo Terráqueo Retro Mango De Madera");
productos_Retro.add("Adorno Cerámico Diseño Hongo Del Jardín");
productos_CasaAves.add("Bowl Pájaro modelo 2 Casa de Aves Orange");
productos_CasaAves.add("Jarra Azul Casa de Aves Orange");
//MASCOTAS
productos_MASCOTAS.add("Mueble para Mascotas Pratt color Duna TU MESITA");
productos_MASCOTAS.add("Mueble para Mascotas Rufus color Blanco TU MESITA");
productos_MASCOTAS_2.add("Hogar para Mascotas Comodo Talla Mediana Y+Post-it adhesivos");
productos_MASCOTAS_2.add("Hogar para Mascotas Comodo y Util Grande Y+Post-it adhesivos");
productos_MASCOTAS_3.add("Comida para Perros RAMBALA Adulto Clásico Doypack 800gr");
productos_MASCOTAS_3.add("Comida para Perros ORIGO Pollo Doypack 10un");
productos_MASCOTAS_4.add("Juguete Varita Presa Aérea para Gatos Jackson Galaxy con Láser");
productos_MASCOTAS_4.add("Pelota de Plastico en Amarillo Talla L Y+Papel de Regalo");
productos_MASCOTAS_5.add("Comedero para macota Buttler gris");
productos_MASCOTAS_5.add("Set de alimentación para perro San remo Sanremo");
productos_MASCOTAS_6.add("Camiseta Oficial Universitario Talla 2 Crema");
productos_MASCOTAS_6.add("Camiseta Oficial Alianza Lima Talla 1 Azul");
productos_MASCOTAS_7.add("Transportadora Kennel Mediana con Bebedero");
productos_MASCOTAS_7.add("Transportador Ideal para Perro L100 Plomo Oscuro Y+Stickers");
//JARDINERIA
productos_JARDINERIA.add("Porta maceta Natural 19cm Casa del Jardín Orange");
productos_JARDINERIA.add("Maceta Redonda Estilo Piedra 15x15cm Con Plato - Color Aleatorio Reyplast");
productos_JARDINERIA_2.add("Maceta tejida con patas Casa del Jardín Orange");
productos_JARDINERIA_2.add("Macetero alto triangular mediano Orange");
//SALUD Y DEPORTES
productos_SALUD.add("Alcohol Isopropílico al 53% Daryza 1lt");
productos_SALUD.add("Alcohol Puro 96° 1 galon Alkofarma");
productos_SALUD_2.add("Bloqueador solar Spf 50 Fr 1000ml Palmera");
productos_SALUD_2.add("Repelente en crema 60gr Off Family");
productos_SALUD_3.add("Respirador Kn95 Earloop Blanco x 15 unidades Leggera");
productos_SALUD_3.add("Mascarilla KN95 Negro x 15 unidades R&G");
productos_SALUD_4.add("Protector infantil de rostro Mono");
productos_SALUD_4.add("Careta protectora anti-fog x1 unid");
productos_SALUD_5.add("Botiquin Master Box N° 14 Polinplast");
productos_SALUD_5.add("Botiquin Master Box N° 20 Polinplast");
productos_SALUD_6.add("Buzo Gold Guard Sms Talla L Blanco 50gr x unid");
productos_SALUD_6.add("Mandilón Descartable 40g/m Pack x6 Unid R&G Talla L");
productos_SALUD_7.add("Guantes de Latex Lig Empolvados T-l X100 Leggera");
productos_SALUD_7.add("Tocas Cofias Gorros Quirúrgicos Descartables por 100 und");
//OFICINA Y ESCOLAR
productos_OFICINA.add("Lapicero CLASS&WORK Rainbow Paquete 3un");
productos_OFICINA.add("Lapicero de punta Redonda CLASS&WORK Tinta Líquida Sunset");
productos_OFICINA_2.add("Diario A6 de Recetas / AMOR");
productos_OFICINA_2.add("Pack Ingenial Ariana: diario + libretas x 2 unds.");
productos_OFICINA_3.add("Calculadora Estilo Kuromi");
productos_OFICINA_3.add("Calculadora Casio Fx 991 es científica Azul");
productos_OFICINA_4.add("Etiqueta Termica Adhesiva 3x2cm 2 Col Pack 3 Rollos");
productos_OFICINA_4.add("Figuras Adhesivas ARTI CREATIVO La Jungla Paquete 8un");
productos_OFICINA_5.add("Notas Adhesivas ARTESCO Sticky 75mm x 75mm Neón");
productos_OFICINA_5.add("Notas Adhesivas ARTESCO Colores Neón Paquete 500un");
productos_OFICINA_6.add("Papel Bond CLASS & WORK A4 Paquete 500 Hojas");
productos_OFICINA_6.add("Rollo de Papel Kraft Zeraus Packing 45cm x 50metros 75g");
//DORMITORIO
productos_DORMITORIO.add("Cama Medallón Ergo 1 plaza Paraiso ");
productos_DORMITORIO.add("Cama Su Majestad 1 plaza Paraiso ");
productos_DORMITORIO.add("Cama Americana Ozono 1 plaza Technodream ");
productos_DORMITORIO_2.add("Dormitorio Consul 2 plazas con sofá cama Paraiso ");
productos_DORMITORIO_2.add("Cama Consul Black 2 plazas Paraiso ");
productos_DORMITORIO_2.add("Dormitorio Consul Black 2 plazas Paraiso ");
productos_DORMITORIO_2.add("Cama Paraiso Lifestyles Pocket 2 Plazas ");
//LIMPIEZA
Limpieza1.add("Limpiador Cif Anti Hongos Doypack 450ml S/8");
Limpieza2.add("Paño de microfibra 40x40cm 6 unidades Orange S/11");
Limpieza3.add("Limpiavidrios Sapolio 5lt S/30");
Limpieza4.add("Limpiador piso madera y laminado 700ml Binner S/31");
Limpieza5.add("Cloro en pastillas para piscinas 1 kg | 5 pastillas de 200 gr Pluschlor S/39.90");
//FOR DE NICOL
for (int i = 0; i < productos_Espejos.size(); i++) {
carrito_Espejos.add(0);
subtotal_NICOL.add(0.0);
}
for (int i = 0; i < productos_Alfombras.size(); i++) {
carrito_Alfombras.add(0);
subtotal_NICOL_2.add(0.0);
}
for (int i = 0; i < productos_Velas.size(); i++) {
carrito_Velas.add(0);
subtotal_NICOL_3.add(0.0);
}
for (int i = 0; i < productos_Menaje.size(); i++) {
carrito_Menaje.add(0);
subtotal_NICOL_4.add(0.0);
}
for (int i = 0; i < productos_Almacenamiento.size(); i++) {
carrito_Almacenamiento.add(0);
subtotal_NICOL_5.add(0.0);
}
for (int i = 0; i < productos_Retro.size(); i++) {
carrito_Retro.add(0);
subtotal_NICOL_6.add(0.0);
}
for (int i = 0; i < productos_CasaAves.size(); i++) {
carrito_CasaAves.add(0);
subtotal_NICOL_7.add(0.0);
}
//FOR DE MASCOTAS
for (int i = 0; i < productos_MASCOTAS.size(); i++) {
carrito_MASCOTAS.add(0);
subtotal_MASCOTAS.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_2.size(); i++) {
carrito_MASCOTAS_2.add(0);
subtotal_MASCOTAS_2.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_3.size(); i++) {
carrito_MASCOTAS_3.add(0);
subtotal_MASCOTAS_3.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_4.size(); i++) {
carrito_MASCOTAS_4.add(0);
subtotal_MASCOTAS_4.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_5.size(); i++) {
carrito_MASCOTAS_5.add(0);
subtotal_MASCOTAS_5.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_6.size(); i++) {
carrito_MASCOTAS_6.add(0);
subtotal_MASCOTAS_6.add(0.0);
}
for (int i = 0; i < productos_MASCOTAS_7.size(); i++) {
carrito_MASCOTAS_7.add(0);
subtotal_MASCOTAS_7.add(0.0);
}
//FOR DE JARDINERIA
for (int i = 0; i < productos_JARDINERIA.size(); i++) {
carrito_JARDINERIA.add(0);
subtotal_JARDINERIA.add(0.0);
}
for (int i = 0; i < productos_JARDINERIA_2.size(); i++) {
carrito_JARDINERIA_2.add(0);
subtotal_JARDINERIA_2.add(0.0);
}
//FOR DE SALUD Y DEPORTES
for (int i = 0; i < productos_SALUD.size(); i++) {
carrito_SALUD.add(0);
subtotal_SALUD.add(0.0);
}
for (int i = 0; i < productos_SALUD_2.size(); i++) {
carrito_SALUD_2.add(0);
subtotal_SALUD_2.add(0.0);
}
for (int i = 0; i < productos_SALUD_3.size(); i++) {
carrito_SALUD_3.add(0);
subtotal_SALUD_3.add(0.0);
}
for (int i = 0; i < productos_SALUD_4.size(); i++) {
carrito_SALUD_4.add(0);
subtotal_SALUD_4.add(0.0);
}
for (int i = 0; i < productos_SALUD_5.size(); i++) {
carrito_SALUD_5.add(0);
subtotal_SALUD_5.add(0.0);
}
for (int i = 0; i < productos_SALUD_6.size(); i++) {
carrito_SALUD_6.add(0);
subtotal_SALUD_6.add(0.0);
}
for (int i = 0; i < productos_SALUD_7.size(); i++) {
carrito_SALUD_7.add(0);
subtotal_SALUD_7.add(0.0);
}
//FOR DE OFICINA ESCOLAR
for (int i = 0; i < productos_OFICINA.size(); i++) {
carrito_OFICINA.add(0);
subtotal_OFICINA.add(0.0);
}
for (int i = 0; i < productos_OFICINA_2.size(); i++) {
carrito_OFICINA_2.add(0);
subtotal_OFICINA_2.add(0.0);
}
for (int i = 0; i < productos_OFICINA_3.size(); i++) {
carrito_OFICINA_3.add(0);
subtotal_OFICINA_3.add(0.0);
}
for (int i = 0; i < productos_OFICINA_4.size(); i++) {
carrito_OFICINA_4.add(0);
subtotal_OFICINA_4.add(0.0);
}
for (int i = 0; i < productos_OFICINA_5.size(); i++) {
carrito_OFICINA_5.add(0);
subtotal_OFICINA_5.add(0.0);
}
for (int i = 0; i < productos_OFICINA_6.size(); i++) {
carrito_OFICINA_6.add(0);
subtotal_OFICINA_6.add(0.0);
}
//FOR DE DORMITORIO
//for (int i = 0; i < menu.size(); i++) {
// carrito.add(0);
//}
for (int i = 0; i < productos_DORMITORIO.size(); i++) {
carrito_DORMITORIO.add(0);
subtotal_DORMITORIO.add(0.0);
}
for (int i = 0; i < productos_DORMITORIO_2.size(); i++) {
carrito_DORMITORIO_2.add(0);
subtotal_DORMITORIO_2.add(0.0);
}
//FOR DE LIMPIEZA
for (int i = 0; i < Limpieza1.size(); i++) {
carrito_limpieza1.add(0);
}
for (int i = 0; i < Limpieza2.size(); i++) {
carrito_limpieza2.add(0);
}
for (int i = 0; i < Limpieza3.size(); i++) {
carrito_limpieza3.add(0);
}
for (int i = 0; i < Limpieza4.size(); i++) {
carrito_limpieza4.add(0);
}
for (int i = 0; i < Limpieza5.size(); i++) {
carrito_limpieza5.add(0);
subtotal_limpieza.add(0.0);
}
//--------------------------------------------------------------------------------------------------------------
}
public void menuprincipal() {
this.logo();
System.out.println("|----------------------------------------------------------------------------------------------------------------------------------|");
System.out.println("|----------------------------------BIENVENIDO A PROMART----------------------------------------------------------------------------|");
System.out.println("|-------------------------------------MENÚ PRINCIPAL-------------------------------------------------------------------------------|");
System.out.println("""
OPCIONES
|--------------------------------------------------------------------------------------------|
|1|- BLOG------------------------------------------------------------------------------------|
|2|- CATEGORIAS------------------------------------------------------------------------------|
|0|- SALIR DE PROMART------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.blog();
break;
case 2:
this.secciondecategorias();
break;
default:
System.out.println("CERRANDO PROGRAMA........................................");
break;
}
}
public void secciondecategorias() {
System.out.println("|--------------------------------------------------------------------------------------------|");
System.out.println("_________CATEGORIAS________");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1|- Organizacion y decohogar--------------------------------------------------------------|
|2|- Limpieza-------------------------------------------------------------------------------|
|3|- Jardineria-----------------------------------------------------------------------------|
|4|- Oficina y escolar----------------------------------------------------------------------|
|5|- Salud y deportes-----------------------------------------------------------------------|
|6|- Mascotas-------------------------------------------------------------------------------|
|7|- Dormitorio-------------------------------------------------------------------------------|
|0|- menu principal-------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.MenuPrincipalDecohogar();
break;
case 2:
this.OPCION_LIMPIEZA();
break;
case 3:
this.seccion_de_JARDINERIA();
break;
case 4:
this.seccion_de_OFICINA_Y_ESCOLAR();
break;
case 5:
this.seccion_de_SALUD_Y_DEPORTES();
break;
case 6:
this.seccion_de_MASCOTAS();
break;
case 7:
this.OPCION_DORMITORIOS();
break;
case 0:
this.menuprincipal();
break;
default:
this.secciondecategorias();
break;
}
}
//------------------------------------------------------------------------------------------------------------------
public void OPCION_DORMITORIOS(){
System.out.println("Marque alguna de las siguientes opciones");
System.out.println(" 1.- Comprar 1 plazas");
System.out.println(" 2.- Comprar 2 plazas");
opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.Comprar_DOMITORIO();
break;
case 2:
this.Comprar_DOMITORIO_2();
break;
default:
System.out.println("Opcion no válida");
this.secciondecategorias();
break;
}
}
public void OPCION_LIMPIEZA(){
System.out.println("TENENMOS LO SIGUIENTE:");
System.out.println(" |1|.- Limpieza de baños");
System.out.println(" |2|.- Limpieza de cocinas");
System.out.println(" |3|.- Limpieza de sala y comedor");
System.out.println(" |4|.- Limpieza de pisos");
System.out.println(" |5|.- Limpieza de piscinas");
opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.ComprarLimpieza1();
break;
case 2:
this.ComprarLimpieza2();
break;
case 3:
this.ComprarLimpieza3();
break;
case 4:
this.ComprarLimpieza4();
break;
case 5:
this.ComprarLimpieza5();
break;
default:
System.out.println("Opcion no válida");
break;
}
}
public void seccion_de_OFICINA_Y_ESCOLAR() {
System.out.println("|--------------------------------------------------------------------------------------------|");
System.out.println("----------OFICINA Y ESCOLAR-----------");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Utiles de Escritorio y Oficina-----------------------------------------------------------|
|2| Regresar---------------------------------------------------------------------------------|
|0| Menu Principal---------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.UTILES_DE_ESCRITORIO_Y_OFICNA();
break;
case 2:
this.secciondecategorias();
break;
case 0:
this.menuprincipal();
break;
default:
break;
}
}
public void UTILES_DE_ESCRITORIO_Y_OFICNA() {
System.out.println("-----UTILES DE ESCRITORIOS Y OFICINA-----");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Lapiceros y bolígrafos-------------------------------------------------------------------|
|2| Agendas y libretas de notas--------------------------------------------------------------|
|3| Calculadoras-----------------------------------------------------------------------------|
|4| Etiquetas y micas------------------------------------------------------------------------|
|5| Notas adhesivas--------------------------------------------------------------------------|
|6| Papelería--------------------------------------------------------------------------------|
|0| regresar---------------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.comprar_OFICINA();
break;
case 2:
this.comprar_OFICINA_2();
break;
case 3:
this.comprar_OFICINA_3();
break;
case 4:
this.comprar_OFICINA_4();
break;
case 5:
this.comprar_OFICINA_5();
break;
case 6:
this.comprar_OFICINA_6();
break;
case 0:
this.seccion_de_OFICINA_Y_ESCOLAR();
break;
default:
break;
}
}
public void seccion_de_SALUD_Y_DEPORTES() {
System.out.println("|--------------------------------------------------------------------------------------------|");
System.out.println("-----SALUD Y DEPORTES-----");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Cuidado de la Salud----------------------------------------------------------------------|
|2| Regresar---------------------------------------------------------------------------------|
|0| Menu Principal---------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
do {
switch (opcion) {
case 1:
this.CUIDADO_DELA_SALUD();
break;
case 2:
this.secciondecategorias();
break;
case 0:
this.menuprincipal();
break;
default:
break;
}
}
while (opcion == 2.1);
}
public void CUIDADO_DELA_SALUD() {
System.out.println("|--------------------------------------------------------------------------------------------|");
System.out.println("-----CUIDADO DE LA SALUD-----");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Alcohol----------------------------------------------------------------------------------|
|2| Bloqueadores solares y repelentes--------------------------------------------------------|
|3| Tapabocas y mascarillas------------------------------------------------------------------|
|4| Protectores faciales---------------------------------------------------------------------|
|5| Mochilas de emergencias y botiquines-----------------------------------------------------|
|6| Mamelucos--------------------------------------------------------------------------------|
|7| Guantes quirurgicos----------------------------------------------------------------------|
|0| regresar---------------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.comprar_SALUD();
break;
case 2:
this.comprar_SALUD_2();
break;
case 3:
this.comprar_SALUD_3();
break;
case 4:
this.comprar_SALUD_4();
break;
case 5:
this.comprar_SALUD_5();
break;
case 6:
this.comprar_SALUD_6();
break;
case 7:
this.comprar_SALUD_7();
break;
case 0:
this.seccion_de_SALUD_Y_DEPORTES();
break;
default:
break;
}
}
public void seccion_de_JARDINERIA() {
System.out.println("----------JARDINERIA----------");
System.out.println("""
|1|- Deco jardin----------------------
|2|- Regresar-------------------------
|0|- Menu Principal-------------------
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.DECOJARDIN();
break;
case 2:
this.secciondecategorias();
break;
case 0:
this.menuprincipal();
break;
default:
break;
}
}
public void DECOJARDIN(){
System.out.println("-----DECO JARDIN-----");
System.out.println("""
|1|- macetas, maceteros y platos------
|0|- regresar-------------------------
""");
opcion=ncs.nextInt();
switch(opcion){
case 1:
this.Macetas_maceteros_y_platos();
break;
case 0:
this.seccion_de_JARDINERIA();
break;
default:
break;
}
}
public void Macetas_maceteros_y_platos(){
System.out.println("JARDINERIA/Deco Jardin/Macetas, maceteros y platos");
System.out.println("""
|1|- Macetas--------------------------
|2|- Maceteros------------------------
|0|- Regresar-------------------------
""");
opcion= ncs.nextInt();
switch(opcion){
case 1:
this.comprar_MACETAS();
break;
case 2:
this.comprar_MACETAS_2();
break;
case 3:
this.DECOJARDIN();
break;
}
}
public void seccion_de_MASCOTAS() {
System.out.println("-----------MASCOTAS----------");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Perros-----------------------------------------------------------------------------------|
|2| Regresar---------------------------------------------------------------------------------|
|0| Menu Principal---------------------------------------------------------------------------||
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
do {
switch (opcion) {
case 1:
this.PERROS();
break;
case 2:
this.secciondecategorias();
break;
case 0:
this.menuprincipal();
break;
default:
break;
}
}
while (opcion == 2.1);
}
public void PERROS() {
System.out.println("|--------------------------------------------------------------------------------------------|");
System.out.println("-----PERROS-----");
System.out.println("""
|--------------------------------------------------------------------------------------------|
|1| Casas para perros------------------------------------------------------------------------|
|2| Camas para perros------------------------------------------------------------------------|
|3| Comida para perros-----------------------------------------------------------------------|
|4| Juguetes para perros---------------------------------------------------------------------|
|5| Platos y comedores para perros-----------------------------------------------------------|
|6| Ropa para perros-------------------------------------------------------------------------|
|7| Transportadores de perros----------------------------------------------------------------|
|0| regresar---------------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.comprar_MASCOTAS();
break;
case 2:
this.comprar_MASCOTAS_2();
break;
case 3:
this.comprar_MASCOTAS_3();
break;
case 4:
this.comprar_MASCOTAS_4();
break;
case 5:
this.comprar_MASCOTAS_5();
break;
case 6:
this.comprar_MASCOTAS_6();
break;
case 7:
this.comprar_MASCOTAS_7();
break;
case 0:
this.seccion_de_MASCOTAS();
break;
default:
break;
}
}
public void MenuPrincipalDecohogar() {
System.out.println("---------ORGANIZACIÓN Y DECOHOGAR-----------");
System.out.println("Seleccione una categoría:");
System.out.println(" 1.- Decoración");
System.out.println(" 2.- Organización");
System.out.println(" 3.- Productos en tendencia");
System.out.println(" 0.- Regresar al menú principal");
int opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.MenuDecoracion();
break;
case 2:
this.MenuOrganizacion();
break;
case 3:
this.MenuTendencia();
break;
case 0:
System.out.println("Regresando al menú principal...");
break;
default:
System.out.println("Opción no válida.");
this.MenuPrincipalDecohogar();
}
}
public void MenuDecoracion() {
System.out.println("-----DECORACIÓN-----");
System.out.println("Seleccione una subcategoría:");
System.out.println(" 1.- Espejos");
System.out.println(" 2.- Alfombras y Tapetes");
System.out.println(" 3.- Velas y Portavelas");
System.out.println(" 0.- Regresar al menú anterior");
int opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.comprar_ESPEJOS();
break;
case 2:
this.comprar_ALFOMBRAS();
break;
case 3:
this.comprar_VELAS();
break;
case 0:
this.MenuPrincipalDecohogar();
break;
default:
System.out.println("Opción no válida.");
this.MenuDecoracion();
}
}
public void MenuOrganizacion() {
System.out.println("-----ORGANIZACIÓN-----");
System.out.println("Seleccione una subcategoría:");
System.out.println(" 1.- Menaje de cocina");
System.out.println(" 2.- Almacenamiento");
System.out.println(" 0.- Regresar al menú anterior");
int opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.comprar_MENAJE();
break;
case 2:
this.comprar_ALMACENAMIENTO();
break;
case 0:
this.MenuPrincipalDecohogar();
break;
default:
System.out.println("Opción no válida.");
this.MenuOrganizacion();
}
}
public void MenuTendencia() {
System.out.println("-----PRODUCTOS EN TENDENCIA-----");
System.out.println("Seleccione una subcategoría:");
System.out.println(" 1.- Retro");
System.out.println(" 2.- Casa de Aves");
System.out.println(" 0.- Regresar al menú anterior");
int opcion = ncs.nextInt();
ncs.nextLine();
switch (opcion) {
case 1:
this.comprar_RETRO();
break;
case 2:
this.comprar_CASA_AVES();
break;
case 0:
this.MenuPrincipalDecohogar();
break;
default:
System.out.println("Opción no válida.");
this.MenuTendencia();
}
}
public void comprar_ESPEJOS(){
System.out.println("Seleccione su PRODUCTO a comprar");
for (int i = 0; i < productos_Espejos.size(); i++) {
System.out.println("Opción " + (i + 1) + " : " + productos_Espejos.get(i)+" S/"+precio_Espejos[i]);
}
System.out.println("Opción 0 : regresar");
opcion = ncs.nextInt();
ncs.nextLine();