Contador de alumnos - UNPA
Contador de alumnos - UNPA
Contador de alumnos - UNPA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
ALGORITMO calculaProm<br />
VARIABLES resp es carácter<br />
INICIO<br />
FIN<br />
calif[40][4] es flotante<br />
contAlum , op son entero<br />
nombre es ca<strong>de</strong>na<br />
contAlum = 0<br />
HACER<br />
Calif[contAlum][3]= INVOCA acumularCal()<br />
Calif[contAlum][3]= Calif[contAlum][3]/ 3<br />
IMPRIMIR “Tu promedio c es: “, Calif[contAlum][3]<br />
contAlum = contAlum + 1<br />
IMPRIMIR “¿otro alumno? (s-si)”<br />
LEER resp<br />
MIENTRAS resp == „s‟<br />
op = INVOCA menuConsultas()<br />
//aquí va a ir la sentencia alternativa<br />
Pudiera mandarse este<br />
código a un modulo, para<br />
separar funcionalida<strong>de</strong>s.