Page 298 - Introduccion a la Programacion
P. 298
298 Introducción a la Programación
PRUEBA DE ESCRITORIO
MES_LLUVIAS
mes[ ] norte[ ] centro[ ] sur[ ] sumaCentro auxMes auxMayor auxMenor region
“ ” 0 0 0
“ ” 0 0 0
<<. <<. <<. <<.
0 0 0 0 “ ”
“ ” 0 0 0
“ ” 0 0 0
0 10 30
“Enero”
“Febrero” 15 25 75
<<. 18 30 80 300 2 80 0 “Centro”
“Noviembre” <<. <<. <<.
1
20
0
“Diciembre”
25 24 12
ALGORITMO EN PseInt
PRUEBA DE ESCRITORIO EN Pseint
1. /* Realice un algoritmo para calcular lo siguiente a partir de
lo
2. * ingresado por el usuario:
3. * Promedio anual de la región Centro.
4. * El mes con menor lluvia en la región sur.
5. * La región con mayor lluvia.
6. //
7. Algoritmo MES_LLUVIAS
8. DEFINIR sumaCentro Como REAL;
9. DEFINIR auxMes, auxMayor, auxMenor Como ENTERO;
10. DEFINIR region Como CARACTER;
11. DIMENSION mes[12];
12. DIMENSION norte[12];
13. DIMENSION centro[12];