Repository navigation
Expand file tree
/
Copy pathPROMART_JULIACA.java
More file actions
6037 lines (5864 loc) · 262 KB
/
Copy pathPROMART_JULIACA.java
File metadata and controls
6037 lines (5864 loc) · 262 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 javax.swing.*;
import java.util.Scanner;
public class PROMART_JULIACA {
private double subtotal,total,total_a_pagar=0,aumentar,vuelto,igv,cant_de_dinero=0;
private int cant_compra,opcion;
private double pago,resto;
private double precioPorProducto,cantidadtotal=0;
private int cantidadProductos;
private double cantidad_R, cantidadtotal_R=0;
private double igv_R, subtotal_R, total_R = 0, vuelto_R;
private int opcionn_R, opcion_Rr, opcion1_R;
Scanner ncs = new Scanner(System.in);
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|- Muebles-------------------------------------------------------------------------------|
| 2|- Terrazas y aire libre-----------------------------------------------------------------|
| 3|- Organizacion y decohogar--------------------------------------------------------------|
| 4|- Baño----------------------------------------------------------------------------------|
| 5|- Cocina--------------------------------------------------------------------------------|
| 6|- Dormitorio----------------------------------------------------------------------------|
| 7|- Pisos y ceramicos---------------------------------------------------------------------|
| 8|- Herramientas--------------------------------------------------------------------------|
| 9|- Construccion--------------------------------------------------------------------------|
|10|- Electricidad---------------------------------------------------------------------------|
|11|- Gasfiteria-----------------------------------------------------------------------------|
|12|- Iluminacion----------------------------------------------------------------------------|
|13|- Pinturas y acabados--------------------------------------------------------------------|
|14|- Ferreteria y puertas-------------------------------------------------------------------|
|15|- Limpieza-------------------------------------------------------------------------------|
|16|- Automotriz-----------------------------------------------------------------------------|
|17|- Jardineria-----------------------------------------------------------------------------|
|18|- Oficina y escolar----------------------------------------------------------------------|
|19|- Infantil-------------------------------------------------------------------------------|
|20|- Salud y deportes-----------------------------------------------------------------------|
|21|- Mascotas-------------------------------------------------------------------------------|
| 0|- menu principal-------------------------------------------------------------------------|
|--------------------------------------------------------------------------------------------|
""");
opcion = ncs.nextInt();
switch (opcion) {
case 1:
this.muebles();
break;
case 2:
this.TerrazasYAireLibre();
break;
case 3:
this.organizacionYDecohogar();
break;
case 4:
this.Baño();
break;
case 5:
this.cocina();
break;
case 6:
this.OPCIONDORMITORIOS();
break;
case 7:
this.OPCIONPISOYCERAMICOS();
break;
case 8:
this.HERRAMIENTAS();
break;
case 9:
this.OPCIONCONSTRUCCION();
break;
case 10:
this.ELECTRICIDAD();
break;
case 11:
this.gasfiteria();
break;
case 12:
this.iluminacion();
break;
case 13:
this.pinturasyacabados();
break;
case 14:
this.ferreteriaypuertas();
break;
case 15:
this.limpieza();
break;
case 16:
this.automotriz();
break;
case 17:
this.seccion_de_JARDINERIA();
break;
case 18:
this.seccion_de_OFICINA_Y_ESCOLAR();
break;
case 19:
this.seccion_de_INFANTIL();
break;
case 20:
this.seccion_de_SALUD_Y_DEPORTES();
break;
case 21:
this.seccion_de_MASCOTAS();
break;
case 0:
this.menuprincipal();
break;
default:
break;
}
}
// CODIGO DE GEMA
public double total() {
igv = total * 0.18;
subtotal = total - igv;
System.out.println("SUBTOTAL " + subtotal);
System.out.println("IGV " + igv);
System.out.println("TOTAL A PAGAR " + total);
System.out.println("--------------------------");
return total;
}
public double vuelto() {
System.out.println("Ingrese la cantidad a pagar:");
pago = ncs.nextDouble();
while (pago < 0) {
System.out.println("No puede ingresar una cantidad negativa. Ingrese un valor válido:");
pago = ncs.nextDouble();
}
vuelto = pago - total;
if (vuelto < 0) {
System.out.println("Falta pagar " + -(vuelto));
System.out.println("Completa el monto a pagar:");
this.confirmación();
resto = ncs.nextDouble();
while (resto < 0) {
System.out.println("No puede ingresar una cantidad negativa. Ingrese un valor válido:");
resto = ncs.nextDouble();
}
if (-(vuelto) == resto) {
System.out.println("Pago Completado");
this.agradecimiento();
this.menuprincipal();
} else if (-(vuelto) < resto) {
System.out.println("Usted tiene de vuelto: " + (resto + vuelto));
} else {
System.out.println("Falta monetaria, deje ese objeto en su lugar.");
this.confirmación();
System.exit(0);
}
} else if (vuelto > 0) {
System.out.println("Su vuelto es: " + vuelto);
this.agradecimiento();
this.confirmación();
} else {
System.out.println("Pago completo");
this.agradecimiento();
this.confirmación();
}
return vuelto;
}
public void confirmación(){
System.out.println("¿DESEA COMPRAR OTRO ARTÍCULO?");
System.out.println("|1|-SI --");
System.out.println("|2|-NO --");
int confirmacion=ncs.nextInt();
switch(confirmacion){
case 1:
this.menuprincipal();
break;
case 2:
System.out.println("GRACIAS POR SU VISITA");
break;
default:
System.out.println("opción no valida");
}
}
public void agregarProductos() {
System.out.println("¿Cuántos productos llevará?");
int cantidad = ncs.nextInt();
while (cantidad <= 0) {
System.out.println("No puede ingresar una cantidad INVALIDA. Ingrese un valor válido:");
cantidad = ncs.nextInt();
}
cantidadProductos += cantidad;
total = cantidadProductos * precioPorProducto;
System.out.println("Cantidad de productos agregados: " + cantidadProductos);
System.out.println("Total actualizado: " + total);
}
public void agradecimiento(){
System.out.println("*****************************************");
System.out.println(" G R A C I A S ");
System.out.println(" POR COMPRAR EN PROMART! ");
System.out.println("*****************************************");
}
public void muebles() {
System.out.println("\n---SECCIÓN MUEBLES---");
System.out.println("""
|1|- Muebles de dormitorio--------------------------
|2|- Muebles de oficina ----------------------------
|3|- Muebles de cocina------------------------------
|4|- Regresar al menu principal----------------------
""");
System.out.print("Ingrese una opción: ");
int mueblesOpcion = ncs.nextInt();
switch (mueblesOpcion) {
case 1:
this.mueblesDormitorio();
break;
case 2:
this.mueblesOficina();
break;
case 3:
this.mueblesCocina();
break;
case 4:
this.secciondecategorias();
break;
default:
System.out.println("Opción no válida. Intente de nuevo.");
}
}
public void mueblesDormitorio() {
System.out.println("\n---MUEBLES DE DORMITORIO---");
System.out.println("""
|1|- Roperos--------------------------
|2|- Cómodas--------------------------
|3|- Camarotes------------------------
""");
System.out.print("Ingrese una opción: ");
int mueblesOpcion = ncs.nextInt();
switch (mueblesOpcion) {
case 1:
this.roperos();
break;
case 2:
this.comodas();
break;
case 3:
this.Camarotes();
break;
default:
System.out.println("Subopción no válida.");
}
}
public void roperos() {
System.out.println("\n---SECCIÓN DE ROPEROS---");
System.out.println("""
|1|- Roperos Blancos---------------------------
|2|- Roperos con espejo------------------------
|3|- roperos con dos puertas-------------------
""");
System.out.print("Ingrese una opción: ");
int roperosOpcion = ncs.nextInt();
switch (roperosOpcion) {
case 1:
this.RoperosBlancos();
break;
case 2:
this.RoperosEspejo();
break;
case 3:
this.Roperos_dos_puetas();
break;
default:
System.out.println("Opción no válida.");
}
}
public void RoperosBlancos() {
System.out.println("""
|--------------------------- ROPEROS BLANCOS------------------------------------|- Precio ---|
|1|- Ropero Siena 6 puertas 2 cajones-------------------------------------------|- S/ 449 ---|
|2|- Ropero Multiuso Cali Tamires 2 puertas 4 repisas --------------------------|- S/ 279 ---|
""");
int rp = ncs.nextInt();
switch (rp) {
case 1:
System.out.println("Ha seleccionado: Ropero Siena 6 puertas 2 cajones (449$)");
precioPorProducto=449;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Ropero Multiuso Cali Tamires 2 puertas 4 repisas (279$)");
precioPorProducto = 279;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void RoperosEspejo(){
System.out.println("""
|--------------------------- ROPEROS CON ESPEJO---------------------------------|- Precio ----|
|1|- Ropero Viena 3 puertas corredizas + Espejo---------------------------------|- S/ 1049 ---|
|2|- Ropero Capri 3 puertas + Espejo--------------------------------------------|- S/ 449- ---|
""");
int RE = ncs.nextInt();
switch(RE){
case 1 :
System.out.println("Ha seleccionado: Ropero Viena 3 puertas corredizas + Espejo (1049$)");
precioPorProducto=1049;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Ropero Capri 3 puertas + Espejo (449$)");
precioPorProducto=449;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void Roperos_dos_puetas(){
System.out.println("""
|------------------------ROPEROS CON DOS PUERTAS--------------------------------|- Precio ----|
|1|- Ropero Viena 3 puertas corredizas + Espejo---------------------------------|- S/ 279 ----|
|2|- Ropero Capri 3 puertas + Espejo--------------------------------------------|- S/ 289 ----|
""");
int RDP = ncs.nextInt();
switch(RDP){
case 1:
System.out.println("Ha seleccionado: Ropero Multiuso Cali Tamires (279$)");
precioPorProducto=279;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Ropero Cali 2 puertas (289$)");
precioPorProducto= 289;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void comodas() {
System.out.println("\n---SECCIÓN DE COMODAS---");
System.out.println("""
|1|- Cómodas de plástico--------------------------
|2|- cómodas Blancas------------------------------
|3|- Cómodas marrones-----------------------------
""");
System.out.print("Ingrese una opción: ");
int comodasOpcion = ncs.nextInt();
switch (comodasOpcion) {
case 1:
this.ComodasPlástico();
break;
case 2:
this.ComodasBlancas();
break;
case 3:
this.ComodasMarrones();
break;
default:
System.out.println("Opción no válida.");
}
}
public void ComodasPlástico(){
System.out.println("""
|---------------------------CÓMODAS DE PLÁSTICO---------------------------------|- Precio ----|
|1|- Ropero Viena 3 puertas corredizas + Espejo---------------------------------|- S/ 839 ----|
|2|- Ropero Capri 3 puertas + Espejo--------------------------------------------|- S/ 249 ----|
""");
int CP = ncs.nextInt();
switch (CP){
case 1:
System.out.println("Ha seleccionado: Cómoda Kaia (839$)");
precioPorProducto=839;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Cómoda Cali (249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("OPpción no valida");
}
}
public void ComodasBlancas(){
System.out.println("""
|--------------------------CÓMODAS BLANCAS------------------------|- Precio ----|
|1|- Comoda Tocador Praga-----------------------------------------|- S/ 269 ----|
|2|- Cómoda Cali--------------------------------------------------|- S/ 249 ----|
""");
int CB = ncs.nextInt();
switch(CB){
case 1:
System.out.println("Ha seleccionado: Comoda Tocador Praga (269$)");
precioPorProducto= 269;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Cómoda Cali (249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void ComodasMarrones(){
System.out.println("""
|------------------------CÓMODAS MARRONES----------------|- Precio ----|
|1|- Cómoda Kaia-----------------------------------------|- S/ 839 ----|
|2|- Cómoda Cali ----------------------------------------|- S/ 249 ----|
""");
int CM = ncs.nextInt();
switch(CM){
case 1:
System.out.println("Ha seleccionado: Cómoda Kaia (839$)");
precioPorProducto=839;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Cómoda Cali (249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.total();
break;
default:
System.out.println("Opcion no valida");
}
}
public void Camarotes(){
System.out.println("-----SECCIÓN DE CAMAROTES-----");
System.out.println("""
|1|- Camarores de 1 plazas--------------------------
|2|- Camarotes de 2 plazas----------------------------
""");
int Ocamarotes= ncs.nextInt();
switch(Ocamarotes){
case 1:
this.Camarores_1_plaza();
break;
case 2:
this.Camarotes_2_plazas();
break;
default:
System.out.println("Opción no valida");
}
}
public void Camarores_1_plaza(){
System.out.println("""
|-------------------- CAMAROTES DE 1.5 PLAZAS-------------------------------------|- Precio --|
|1|- Camarote 1 plaza ½ + colchón paraíso + gratis almohada-----------------------|- S/ 2699--|
|2|- Camarote multifuncional con escritorio 1 plaza/1.5 plazas DMuebles Barcelona-|- S/ 3599--|
""");
int camarote1 = ncs.nextInt();
switch (camarote1){
case 1:
System.out.println("Ha Seleccionado:" +
" Camarote 1 plaza ½ + colchón paraíso + gratis almohada (2699$)");
precioPorProducto= 2699;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado:" +
" Camarote multifuncional con escritorio 1 plaza/1.5 plazas DMuebles Barcelona (3599$)");
precioPorProducto= 3599;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void Camarotes_2_plazas(){
System.out.println("""
|---------------------- CAMAROTES DE 2 PLAZAS-------------------------------------|- Precio --|
|1|- Camarote 2 plazas FMuebles Husar con Organizador-----------------------------|- S/ 4599--|
|2|- Camarote triple 2 plazas DMuebles Valladol con Cama Nido---------------------|- S/ 4599--|
""");
int camarote2 = ncs.nextInt();
switch (camarote2){
case 1:
System.out.println("Ha Seleccionado:" +
" Camarote 2 plazas FMuebles Husar con Organizador (4599$)");
precioPorProducto= 4599;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado:" +
" Camarote triple 2 plazas DMuebles Valladol con Cama Nido (4599$)");
precioPorProducto= 4599;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void mueblesOficina() {
System.out.println("\n---MUEBLES DE OFICINA---");
System.out.println("""
|1|- Sillas y Sillones de oficina------------------
|2|- Sillas Gamer----------------------------------
|3|- Escritorios------------------------------------
""");
System.out.print("Ingrese una opción: ");
int oficinaOpcion = ncs.nextInt();
switch (oficinaOpcion) {
case 1:
this.SillasySillones();
break;
case 2:
this.sillasGamer();
break;
case 3:
this.Escritorios();
break;
default:
System.out.println("Opción no válida.");
}
}
public void SillasySillones(){
System.out.println("""
|-------------------SILLAS Y SILLONES DE OFICINA------------------|- Precio ----|
|1|- Silla de oficina giratoria Orange Tauro Negro----------------|- S/ 119 ----|
|2|- Silla fija Estambul Negra Orange-----------------------------|- S/ 109 ----|
""");
int sillasysillones=ncs.nextInt();
switch(sillasysillones){
case 1:
System.out.println("Ha seleccionado: Silla de oficina giratoria Orange Tauro Negro(119$)");
precioPorProducto=119;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Silla fija Estambul Negra Orange(109)");
precioPorProducto=109;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void sillasGamer(){
System.out.println("""
|-------------------------SILLAS GAMER-----------------------------|- Precio ----|
|1|- Silla Gamer Azul Orange---------------------------------------|- S/ 249 ----|
|2|- Silla Gamer New Racing Pro Pu Cuero rojo/negro Orange---------|- S/ 399 ----|
""");
int sillasgamer=ncs.nextInt();
switch(sillasgamer){
case 1:
System.out.println("Ha seleccionado: Silla Gamer Azul Orange(249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: " +
"Silla Gamer New Racing Pro Cuero rojo/negro Orange(399$)");
precioPorProducto=399;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void Escritorios(){
System.out.println("-----ESCRITORIOS-----");
System.out.println("""
|1|- Escritorios Gamer-----------------------------
|2|- Escritorios Vintage---------------------------
|3|- Escritorios Blancos---------------------------
""");
int escritorios = ncs.nextInt();
switch (escritorios){
case 1:
this.EscritoriosGamer();
break;
case 2:
this.EscritoriosVintage();
break;
case 3:
this.EscritoriosBlancos();
break;
default:
System.out.println("Opcion no valida");
}
}
public void EscritoriosGamer(){
System.out.println("""
|----------------------ESCRITORIOS GAMER------------------------------|- Precio ----|
|1|- Escritorio Gamer Sirion MDP negro/ Rojo Bonno--------------------|- S/ 499 ----|
|2|- Escritorio Gamer Odin OfficeSpace--------------------------------|- S/ 699 ----|
""");
int EscritoriosGamer=ncs.nextInt();
switch(EscritoriosGamer){
case 1:
System.out.println("Ha seleccionado: Escritorio Gamer Sirion MDP negro/ Rojo Bonno. (499$)");
precioPorProducto=499;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Escritorio Gamer Odin OfficeSpace. (699$)");
precioPorProducto=699;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void EscritoriosVintage(){
System.out.println("""
|----------------------ESCRITORIOS VINTAGE------------------------------------|- Precio ----|
|1|- Escritorio Organizador Vintage Mirandah Ventitas Home Duna y Blanco------|- S/ 540 ----|
|2|- Escritorio Vintage Moderno Alice Alto 151cm------------------------------|- S/ 1950 ---|
""");
int EscritoriosGamer=ncs.nextInt();
switch(EscritoriosGamer){
case 1:
System.out.println("Ha seleccionado:" +
"Escritorio Organizador Vintage Mirandah Ventitas Home Duna y Blanco (540$)");
precioPorProducto=540;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Escritorio Vintage Moderno Alice Alto 151cm (1950$)");
precioPorProducto=1950;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void EscritoriosBlancos(){
System.out.println("""
|----------------------ESCRITORIOS BLANCOS--------------------------|- Precio ----|
|1|- Escritorio Manaus MDP Blanco-----------------------------------|- S/ 249 ----|
|2|- Escritorio astana Melamina Blanco------------------------------|- S/ 499 ----|
""");
int EscritoriosBlancos=ncs.nextInt();
switch(EscritoriosBlancos){
case 1:
System.out.println("Ha seleccionado: Escritorio Manaus MDP Blanco. (249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Escritorio astana Melamina Blanco (499$)");
precioPorProducto=499;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void mueblesCocina() {
System.out.println("---MUEBLES DE COCINA---");
System.out.println("""
|1|- Alacenas de Cocina-----------------------------
|2|- Tableros de Cocina-----------------------------
""");
int MuCocina=ncs.nextInt();
switch(MuCocina){
case 1:
this.AlacenasCocina();
break;
case 2:
this.tablerosCocina();
break;
default:
System.out.println("Opción no valida");
}
}
public void AlacenasCocina(){
System.out.println("""
|---------------------- ALACENAS DE COCINA------------------------------|- Precio ----|
|1|- Mueble de cocina dalia MDP 60 cm Blanco Orange---------------------|- S/ 279 ----|
|2|- Mueble de cocina Madison 90 cm Orange------------------------------|- S/ 419 ----|
""");
int alacenascocina=ncs.nextInt();
switch(alacenascocina){
case 1:
System.out.println("Ha seleccionado: Mueble de cocina dalia MDP 60 cm Blanco Orange (279$)");
precioPorProducto=279;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Mueble de cocina Madison 90 cm Orange (419$)");
precioPorProducto=419;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void tablerosCocina(){
System.out.println("""
|---------------------- TABLEROS DE COCINA---------------------------------|- Precio ----|
|1|- Tablero mesada para a muebles Madrid----------------------------------|- S/ 249 ----|
|2|- Tablero para Mueble de cocina Madesa 150 cm Gris----------------------|- S/ 269 ----|
""");
int Tableroscocina=ncs.nextInt();
switch(Tableroscocina){
case 1:
System.out.println("Ha seleccionado: Tablero mesada para a muebles Madrid (249$)");
precioPorProducto=249;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Ha seleccionado: Tablero para Mueble de cocina Madesa 150 cm Gris (269$)");
precioPorProducto=269;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opción no valida");
}
}
public void TerrazasYAireLibre(){
System.out.println("---TERRAZAS Y AIRE LIBRE---");
System.out.println("""
|1|- Especial Terraza-------------------------
|2|- Terraza----------------------------------
|3|- Jardineria-------------------------------
""");
int opcion1 = ncs.nextInt();
switch (opcion1){
case 1:
this.EspecialTerraza();
break;
case 2:
this.terrazas();
break;
case 3:
this.jardineria();
break;
default:
System.out.println("Opción no valida");
}
}
public void EspecialTerraza(){
System.out.println("--ESPECIAL TERRAZA");
System.out.println("1.- Terrazas del balcón");
System.out.println("2.- Terrazas de sala");
System.out.println("3.- Comedores");
int terrazasB= ncs.nextInt();
switch(terrazasB){
case 1:
this.TerrazasBalcon();
break;
case 2:
this.terrazasSala();
break;
case 3:
this.comedores();
break;
}
}
public void TerrazasBalcon(){
System.out.println("--TERRAZAS DE BALCÓN--");
System.out.println("1.-Juego De Terrazas Bistro Plus Mesa + 2 Sillas Marrón 199$");
System.out.println("2.-Set De Terraza Orange Palma: 2 Butacas + Mesa 699$");
int terrazasB=ncs.nextInt();
switch (terrazasB){
case 1:
System.out.println("Juego De Terrazas Bistro Plus Mesa + 2 Sillas Marrón 199$");
precioPorProducto=199;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Set De Terraza Orange Palma: 2 Butacas + Mesa 699$");
precioPorProducto=699;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void terrazasSala(){
System.out.println("--TERRAZAS DE SALA--");
System.out.print("1.-Sofá De Terraza Terranova 224cm Orange 1499 $");
System.out.println("2.-Set Terraza Bailbao 1 Sofá + 2 Butacas + Mesa Orange 1699 $");
int terrazasS=ncs.nextInt();
switch (terrazasS){
case 1:
System.out.println("Sofá De Terraza Terranova 224cm Orange 1499 $");
precioPorProducto=1499;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Set Terraza Bailbao 1 Sofá + 2 Butacas + Mesa Orange 1699 $");
precioPorProducto=1699;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void comedores(){
System.out.println("--Comedores--");
System.out.print("1.-Set Mesa Jamaica Mix + 4 Sillas Polinplast 399$");
System.out.println("2.-Set De Terraza Delano 5 Piezas Keter 2999$");
int comedores=ncs.nextInt();
switch( comedores){
case 1:
System.out.println("Set Mesa Jamaica Mix + 4 Sillas Polinplast 399$");
precioPorProducto=399;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Set De Terraza Delano 5 Piezas Keter 2999$");
precioPorProducto=2999;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void terrazas(){
System.out.println("--TERRAZAS--");
System.out.println("""
|1|- Juego de terrazas-------------------------
|2|- Sombrillas----------------------
|3|- Mesas de exterior---------------------
""");
int terraza=ncs.nextInt();
switch(terraza){
case 1:
this.juego_de_terrazas();
break;
case 2:
this.sombrillas();
break;
case 3:
this.mesas_exterior();
break;
default:
System.out.println("Opcion no valida");
}
}
public void juego_de_terrazas(){
System.out.println("--JUEGO DE TERRAZAS--");
System.out.println("1.-Juego de terraza Bistro Mesa + 2 sillas Marrón 199$");
System.out.println("2.-Sofá de terrazas Terranova 224cm Orange 1499$");
int juegoterraza= ncs.nextInt();
switch(juegoterraza){
case 1:
System.out.println();
System.out.println("Ha seleccionado: Juego de terraza Bistro Mesa + 2 sillas Marrón 199$");
precioPorProducto =199;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Sofá de terrazas Terranova 224cm Orange 1499$");
precioPorProducto=1499;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
}
}
public void sombrillas(){
System.out.println("--SOMBRILLAS--");
System.out.println("1.-Quitasol terraza lateral Aluminio rectangular 290x390cm Taupe Naterial 899$");
System.out.println("2.-Sombrilla de playa Airvent Uv Fp50 + gris Orange 79.90$");
int sombrilla = ncs.nextInt();
switch(sombrilla){
case 1:
System.out.println("Quitasol terraza lateral Aluminio rectangular 290x390cm Taupe Naterial 899$");
precioPorProducto=899;
this.agregarProductos();
this.total();
this.vuelto();
break;
case 2:
System.out.println("Sombrilla de playa Airvent Uv Fp50 + gris Orange 79$");
precioPorProducto=79;
this.agregarProductos();
this.total();
this.vuelto();
break;
default:
System.out.println("Opcion no valida");
}
}
public void mesas_exterior(){
System.out.println("--MESAS DE EXTERIOR--");
System.out.println("1.Mesa catering plegable 150cm Orange 179$");
System.out.println("2.-Mesa de terraza Noa Vidrio +Ratan 80x80x66 Naterial 399$");
int mesasExterior= ncs.nextInt();
switch(mesasExterior){
case 1:
System.out.println("Mesa catering plegable 150cm Orange 179$");
precioPorProducto=170;