-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresupuesto
141 lines (139 loc) · 3.92 KB
/
presupuesto
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
//PRESUPUESTO ANUAL PARA BEBE
//PROGRAMA 31
//27 DE MAYO DEL 2018
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
int e;
float t;
main ( )
{
system("color 2f");
gotoxy(30,6);
printf("BIENVENIDO AL PROGRAMA 31");
gotoxy(33,7);
printf("GASTO ANUAL EN BEBE");
gotoxy(7,10);
printf("SELECCIONA LA ETAPA QUE DESEAS VER: ");
gotoxy(8,12);
printf("%c RN 0 (0 A 20 DIAS) ",254);
gotoxy(8,13);
printf("%c ETAPA 1 (20 A 40 DIAS) ",254);
gotoxy(8,14);
printf("%c ETAPA 2 (2 A 4 MESES) ",254);
gotoxy(8,15);
printf("%c ETAPA 3 (5 A 10 MESES) ",254);
//SOLO SE CONTEMPLÓ HASTA UN AÑO
gotoxy(8,16);
printf("%c ETAPA 4 (11 A 20 MESES)",254);
gotoxy(8,17);
printf("%c 5 GASTO TOTAL (1 AÑO DE VIDA)",254);
gotoxy(9,19);
scanf("%d",&e);
switch (e)
{
case 0:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c RN 0",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS POR 192.32MXN",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 2PZAS POR 529MXN",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=(192.32*2)+(529*2);
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
case 1:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c ETAPA 1",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS POR 219MXN",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 2PZAS POR 529MXN",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=(219*2)+(529*2);
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
case 2:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c ETAPA 2",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS POR 260MXN",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 2PZAS POR 529MXN",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=(260*5)+(529*4);
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
case 3:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c ETAPA 3",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS POR 325MXN",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 2PZAS POR 529MXN",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=(325*12)+(529*9);
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
case 4:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c ETAPA 4",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS POR 329.7MXN",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 2PZAS POR 529MXN",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=(329.7*5)+(529*4);
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
case 5:
system("cls");
system("color 5f");
gotoxy(2,2);
printf("%c GASTO ANUAL",254);
gotoxy(5,6);
printf("ARTICULOS: ");
gotoxy(6,8);
printf("%c HUGGIES SUPREME DE 84PZAS",254);
gotoxy(6,9);
printf("%c FORMULA NAN 1 CON 2PZAS ",254);
//CONSIDERANDO 6 COMIDAS Y 7 CAMBIOS DE PAÑAL DIARIOS
gotoxy(7,10);
t=1442.64+1496+3416+8661+3764.5;
gotoxy(8,12);
printf("EL GASTO VA A SER DE: %.f",t);
break;
}
getch();
}