algoritmo repetitivo

1
Algoritmo Repetitivo Contador alumnos Contador alumnos ap Contador alumnos reprobados Acumulador nota Acumulador ap Acumulador reprobados Inicio Repetir mientras resp==1: Contador alum==contador alum + 1; Imprimir”indique la nota del alumno; Leer nota; Acumulador nota= acumulador + nota; Si (nota >= 10) entonces Contador ap= contadorap + 1; Acumulador ap = acumulador ap+ nota; Si (nota < 10) entonces Contador rep= contador rep + 1; Acumulador rep = acumulador rep + nota; Imprimir “¿desea incluir otro alumno? Si (1) No (2); Leer resp; Promedio = acumulador nota / contador alum; Promedioap= acumuladorap/ contador ap; Promediorep= acumulador rep/ contadorrep; Imprimir “el promedio el promedio de notas de la asignatura es “(promedio): Imprimir el promedio de las notas aprobadas es(promedioap); Imprimir el promedio de las notas reprobadas es(promediorep); FIN

Upload: jesus-dangelo

Post on 11-Feb-2017

55 views

Category:

Engineering


0 download

TRANSCRIPT

Algoritmo Repetitivo Contador alumnos Contador alumnos ap Contador alumnos reprobados Acumulador nota Acumulador ap Acumulador reprobados Inicio Repetir mientras resp==1: Contador alum==contador alum + 1;

Imprimir”indique la nota del alumno”; Leer nota; Acumulador nota= acumulador + nota; Si (nota >= 10) entonces Contador ap= contadorap + 1; Acumulador ap = acumulador ap+ nota; Si (nota < 10) entonces Contador rep= contador rep + 1; Acumulador rep = acumulador rep + nota; Imprimir “¿desea incluir otro alumno? Si (1) No (2); Leer resp; Promedio = acumulador nota / contador alum; Promedioap= acumuladorap/ contador ap; Promediorep= acumulador rep/ contadorrep; Imprimir “el promedio el promedio de notas de la asignatura es “(promedio): Imprimir “el promedio de las notas aprobadas es” (promedioap); Imprimir “el promedio de las notas reprobadas es” (promediorep); FIN