Você está na página 1de 6

UNIVERSIDAD DE GUAYAQUIL

FACULTAD DE INGENIERA INDUSTRIAL

CARRERA
ING. EN TELEMTICA

MATERIA
PROGRAMACIN ESTRUCTURADA

CURSO
SEGUNDO SEMESTRE C

ESTUDIANTE
CEVALLOS AVILEZ IRMA ZULAY

DOCENTE
ING. GARCA TORRES INGRID ANGLICA

2017 2018
GUAYAQUIL ECUADOR
CONSTRUIR ALGORITMO, DIAGRAMA DE FLUJO Y
PSEUDOCDICO EN EL CUAL SE REALICE LO SIGUIENTE:
EJERCICIO #1. Indicar si el nmero ingresado es positivo o
negativo.

ALGORITMO
1. Ingresar un nmero.
2. Indicar si es positivo o negativo.

PSEUDOCDIGO
Proceso SIN_TITULO
Escribir "Ingrese un nmero: ";
Leer num;
Si num>0 Entonces
Escribir "Su nmero es positivo";
Sino
Escribir "Su nmero es negativo";
FinSi
FinProceso

FLUJOGRAMA

EJERCICO #2. Dado el nombre y la edad en aos. Calcular el


nmero de pulsaciones que debe tener por cada diez segundos
de ejercicio.

ALGORITMO
1. Ingresar nombre y edad.
2. Calcular el nmero de pulsaciones que deber tener por cada diez
segundos.

PSEUDOCDIGO
Proceso SIN_TITULO
Escribir "Ingrese su nombre: ";
Leer nombre;
Escribir "Ingrese su edad: ";
Leer edad;
nupulsaciones=(220-edad)/10;
Escribir "Su nmero de pulsaciones es: ";
Escribir nupulsaciones;
FinProceso

FLUJOGRAMA

EJERCICIO #3. Sumar dos nmeros.

ALGORITMO
1. Ingresar dos nmeros.
2. Realizar la sumatoria de ambos nmeros.

PSEUDOCDIGO
Proceso SIN_TITULO
Escribir "Ingrese valor uno: ";
Leer n1;
Escribir "Ingrese valor dos: ";
Leer n2;
s=n1+n2;
Escribir "La suma es: ";
Escribir s;
FinProceso

FLUJOGRAMA
EJERCICIO #4. Dado el peso en libras, convierta a kilogramos.

ALGORITMO
1. Ingresar peso en libras.
2. Convertir peso a kilogramo.

PSEUDOCDIGO
Proceso SIN_TITULO
Escribir "Ingrese su peso en libras: ";
Leer pl;
peso=pl/2.2;
Escribir "Su peso en Kilogramos es: ";
Escribir peso;
FinProceso

FLUJOGRAMA

EJERCICIO #5. Dados el nombre del producto, precio y


cantidad a comprar. Calcular subtotal, 14% I.V.A. y total a
pagar.
ALGORITMO
1. Ingresar nombre, precio y cantidad del producto a comprar.
2. Calcular subtotal, I.V.A., y total a pagar.

PSEUDOCDIGO
Proceso SIN_TITULO
Escribir Ingrese el nombre del producto: ;
Leer PROD;
Escribir Ingrese el precio del producto: ;
Leer PRECIO;
Escribir Ingrese la cantidad del producto: ;
Leer CANT;
SUBTOTAL<-PRECIO*CANT;
IVA<-SUBTOTAL*14/100;
TOTAL<SUBTOTAL+IVA;
Escribir El subtotal es: $", SUBTOTAL;
Escribir El IVA es: $, iva;
Escribir Su total a pagar es: $, total;
FinProceso

FLUJOGRAMA

Você também pode gostar