Algoritmos | Tarea en clase
-
Upload
rickyconde -
Category
Documents
-
view
213 -
download
0
description
Transcript of Algoritmos | Tarea en clase
Pseudocódigo:
Inicio While Control True Do
Mostrar “Ingrese letra”Leer Letra Case LetraCase1 Letra (Letra = “A” or “a”) Control falseCase2 Letra (Letra = “E” or “e”) Control falseCase3 Letra (Letra = “I” or “i”) Control falseCase4 Letra (Letra = “O” or “o”) Control falseCase5 Letra (Letra = “U” or “u”) Control falseOther case Control TrueEnd Case
End WhilePrint “Letra”
Fin del Algoritmo.
Pseudocódigo:
Inicio for 1 to 35 do
Mostrar “Ingrese 1er. Nota”Leer Nota1Mostrar “Ingrese 2da. Nota”Leer Nota2Mostrar “Ingrese 3er. Nota”Leer Nota3Promedio (Nota1 + Nota2 + Nota3) / 3Case Nota finalCase1 Nota final Promedio <= 60 Print “Reprobado”Case2 Nota final Promedio >= 61 y Promedio <=70 Print “Aprobado”Case3 Nota final Promedio >= 71 y Promedio <=80 Print “Notable”Case4 Nota final Promedio >= 81 y Promedio <=90 Print “Sobresaliente”Case5 Nota final Promedio >= 91 y Promedio <=100 Print “Excelente”Other case Print “Nota invalida” / Exit End Case
End forFin del Algoritmo.