Sunteți pe pagina 1din 5

REPRESENTACIÓN ALGORITMICA MEDIANTE DIAGRAMAS DE FLUJO

PSEUDOCÓDIGO

Elaborado por:
MARIA JOSE MUÑOZ MERCADO

Presentado a:
NILSON NEGRETE QUIROZ

INSTITUCIÓN EDUCATIVA NUESTRA SEÑORA DEL ROSARIO


ÁREA DE TECNOLOGÍA E INFORMÁTICA

GRADO 11°01

VALENCIA – CÓRDOBA

2020
ELABORA UN TRABAJO ESCRITO (.docx - .pdf) EN EL CUAL RESPONDAS
LAS SIGUIENTES PREGUNTAS ‌
Explica las diferencias que existen entre los diagramas de flujo y los pseudocódigos.
Los diagramas de flujo favorecen la comprensión del proceso a través de un dibujo además
permiten identificar los problemas y las oportunidades de mejora del proceso. Pero tiene
algunas desventajas como que ocupa demasiado espacio, ilustran el flujo del programa,
pero no su estructura.
El pseudocódigo por su parte es más fácil de modificar, se puede ejecutar en un ordenador
aunque tiene desventajas como un complejo de entender para la persona común y corriente
y no es tan sencillo para los programadores principiantes.

Elabora los siguientes algoritmos y representativos mediante DIAGRAMAS DE FLUJO y


mediante PSEUDOCÓDIGO.
A. Un algoritmo que permite leer 3 notas parciales y calcular el promedio de ellas.
Programa: calcular el promedio de 3 notas parciales
Entorno: NOTA1, NOTA2, NOTA3, SUMA, PROMEDIO
Algoritmo:
Inicio
Escribir “introduzca las NOTA 1, NOTA 2, NOTA 3”
Leer NOTA1, NOTA2, NOTA3
Calcular SUMA := NOTA1 + NOTA2 + NOTA3
Calcular PROMEDIO := SUMA /3
Escribir “el promedio de 3 notas parciales es: “, PROMEDIO
Fin
inicio

NOTA1,
NOTA2,
NOTA3, SUMA,

PROMEDIO

SUMA := NOTA1 + NOTA2 + NOTA3

PROMEDIO := SUMA / 3

PROMEDIO

fin
B. Un algoritmo que calcula el área de un círculo, a partir de su radio.
Pseudocódigo:
Programa: calcular el área de un círculo
Entorno: RADIO, PI, AREA
Algoritmo:
Inicio
Escribir “introduzca el RADIO, PI”
Leer RADIO, PI
Calcular AREA := PI * RADIO^2
Escribir “el radio del circulo es: “, AREA
Fin

inicio

RADIO, PI,
AREA

AREA = PI * RADIO ^ 2

AREA

fin

C. Un algoritmo que me permita conocer el puntaje de un equipo de futbol, conociendo el


número de partidos ganados, empatados y perdidos.

Pseudocódigo:
Programa: calcular el puntaje de un equipo de fútbol
Entorno: PARTIDOS_GANADOS, PARTIDOS_EMPATADOS,
PARTIDOS_PERDIDOS, TOTAL_DE_PUNTOS, PUNTOS_PARTIDOS_GANADOS,
PUNTOS_PARTIDOS_EMPATADOS son números enteros
Algoritmo:
Inicio
Escribir “introduzca puntajes por PARTIDOS GANADOS, PARTIDOS EMPATADOS,
PARTIDOS PERDIDOS”
Leer PARTIDOS_GANADOS
Leer PARTIDOS_EMPATADOS
Leer PARTIDOS_PERDIDOS
Calcular PUNTOS_PARTIDOS_GANADO = PARTIDOS_GANADOS *3
Calcular PUNTOS_PARTIDOS_EMPATADOS = PARTIDOS_EMPATADOS *1
Calcular TOTAL_DE_PUNTOS = PUNTOS_PARTIDOS_GANADOS
PUNTOS_PARTIDOS_EMPATADOS
Escribir “el puntaje total del equipo es: “, TOTAL_DE_PUNTOS
Fin
inicio

PARTIDOS_GANADOS,
PARTIDOS_EMPATADOS,
PARTIDOS_PERDIDOS,
TOTAL_DE_PUNTOS,
PUNTOS_PARTIDOS_GANADOS,
PUNTOS_PARTIDOS_EMPATADOS

PUNTOS_PARTIDOS_GANADO = PARTIDOS_GANADOS *3

PUNTOS_PARTIDOS_EMPATADOS = PARTIDOS_EMPATADOS *1

TOTAL_DE_PUNTOS = PUNTOS_PARTIDOS_GANADOS
PUNTOS_PARTIDOS_EMPATADOS

TOTAL_DE_PUNTOS

fin
D. Un algoritmo que sea de elaboración propia
Pseudocódigo:
Programa: calcular el área de un triangulo
Entorno: BASE, ALTURA, AREA
Algoritmo:
Inicio
Escribir “introduzca la BASE, ALTURA”
Leer BASE, ALTURA
Calcular AREA := (BASE * ALTURA) /2
Escribir “el area del triangulo es: “, AREA
Fin
inicio

BASE, ALTURA,
AREA

AREA = (BASE *
ALTURA) /2

AREA

fin

S-ar putea să vă placă și