Está en la página 1de 3

PRINCIPIOS DE ALGORITMOS

ALGORITMOS

LOGRO DE LA SESIÓN: Al final de la sesión, el alumno elabora pseudocódigos básicos, Empleando


estructuras condicionales simples y dobles.

1. Proceso COMPRA EN TIENDA


2. Definir: Clien Como: Caracter
3. Definir: Comp, Desc, Total Como: Real
4. Escribir: “Ingrese el nombre del cliente”
5. Leer: Clien
6. Escribir: “Ingrese el valor de la compra”
7. Leer: Comp
8. Escribir: “Ingrese el valor del descuento”
9. Leer: Desc
10. Si Comp>=150 Entonces Desc<-0.12*Comp
11. Leer: “El valor total es =”, Total
12. FinSI
13. FinProceso

1. Proceso NOTAS
2. Definir: Alumn Como: Carácter
3. Definir: Expar1,Expar2,Expar3, Pract, Exfin, Prom Como: Real
4. Escribir: “Ingrese el nombre del Alumno”
5. Leer: Alumn
6. Escribir: “Ingrese el valor de los Exparciales”
7. Leer: Expar1, Expar2, Expar3
8. Escribir: “Ingrese el valor de Practicas”
9. Leer: Pract
10. Escriibir: “Ingrese el valor de Examen Final
11. Leer: Exfin
12. Escribir: “Ingrese el valor del promedio”
13. Leer: Prom
14. Prom<-(Expar1+Expar2+Expar3)*0.15+Pract*0.25+Exfin*0.3
15. Si Prom>12 Entonces

Escribir Alum

Escribir Prom

16. FinSI
17. FinProceso

1. Proceso NUMERO MAYOR


2. Definir: Num1, Num2 Como: Real
3. Escribir: “Ingrese el numero 1”
4. Leer: Num1
5. Escribir: “Ingrese el numero 2”
6. Leer: Num2
7. Si Num1>Num2 Entonces “Escribir numero 1”
8. Sino Escribir Num2
9. FinSi
10. FinProceso

1. Proceso SUELDO FINAL


2. Definir: Nomb Como: Caracter
3. Definir: Suel, Hij, SuelF Como: Real
4. Escribir: “Ingrese el nombre”
5. Leer: Nomb
6. Escribir: “Ingrese el valor del sueldo”
7. Leer: Suel
8. Escribir: “Ingrese el numero de hijos”
9. Leer: Hij
10. SuelF<-Suel+Bon
11. Si Hij>0 Entonces SuelF<-Suel+0.07*Suel
12. Sino SuelF<-Suel
13. FinSi
14. FinProceso

1. Proceso DIGITE NUMERO NATURAL


2. Definir: Num1, NumFin Como: Natural
3. Escribir: “Ingrese el valor de Numero 1”
4. Leer: Num1
5. Si Num1>100 Entonces NumFin<-Num1*0.3
6. Sino NumFin<-Num1*1.5
7. FinSi
8. FinProceso

1. Proceso Mostrar numero


2. Definir: Num Como: Natural
3. Escribir: “Ingrese el valor del Numero”
4. Leer: Num
5. Si Num>0

Escribir” Par positivo”

Sino

Escribir ”Par negativo”

6. FinSi
7. FinProceso
1. Proceso NUMEROS
2. Definir: Num Como: Natural
3. Escribir: “Ingrese el valor del numero”
4. Leer: Num
5. Si Num

1. Proceso CONVERSION MONEDA


2. Definir: Cli, Como: Carácter
3. Definir: Cant, Dolares, Euros Como: Real
4. Escribir: “Ingrese el cliente”
5. Leer: Cli
6. Escribir: “Ingrese la cantidad de dolares”
7. Leer: Dolares
8. Escribir: “Ingrese la cantidad de Euros”
9. Leer: Euros
10. Cant<-dolares*2.35
11. Cant<-euros*3.58
12. FinSi
13. FinProceso

1. Proceso SUELDO FINAL


2. Definir: Trab Como: Caracter
3. Definir: Horas, Val, ExHor SuelF Como: Real
4. Escribir: “Ingrese el nombre del trabajador”
5. Leer: Trab
6. Escribir: “Ingrese el valor de las horas”
7. Leer: Horas
8. Escribir: “Ingrese el valor de las horas extras”
9. Leer: ExHor
10. Escribir: “Ingrese el valor”
11. Leer: Val
12. Si ExHor>0 Entonces SuelF<-6*Horas*Val+ExHor*1.5*Val
13. Sino SuelF<-6*Horas*Val
14. Escribir “El sueldo final es=”, SuelF
15. FinSi
16. FinProceso

También podría gustarte