Algoritmos | Tarea en clase

6
Algoritmos Tarea en clase…

description

Descripción de los dos ejercicios vistos en clase comprendidos por Diagrama de flujos y pseudocódigo.

Transcript of Algoritmos | Tarea en clase

Algoritmos Tarea en clase…

Ejercicio #1

Diagrama de flujo

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.

Ejercicio #2

Diagrama de flujo

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.

“”

Gracias por la oportunidad

Compañeros INGENIERÍA EN SISTEMAS SECCIÓN B

Desarrollado por Ricky Conde