1. UNIVERSIDAD FERMIN TORO
DEPARTAMENTO DE PROGRAMACION
INTRODUCCION A LA COMPUTACION
CABUDARE – LARA
Alumno:Angel Hoyer
C.I:30001325
Docente:EstebanTorrealba
2. 1. Realice un algoritmoque reciba como entrada un número y determine si el mismo espar o
impar e imprima el númeroel mensaje “PAR” O “IMPAR”.(Valor1%)
PRINCIPIODELALGORITMO, numero
//Declaraciónde variables
variables
num:ENTERO
cond: ALFANUMERICO
// Entrada de datos
SALIR(‘Introduzcael Número:‘)
LEER(num)
//Procesamientode losdatos
SI (numMOD 2 = 0) ENTONCESHAGA
cond = ‘PAR’
SINOHAGA
cond = ‘IMPAR’
TERMINE SI
// Salidade datos
SALIR(‘El número:‘,num,’es:‘,cond)
FIN DEL ALGORITMO, numero
3. 2. El gobiernodespuésde tres años, decide aumentarel sueldoa los trabajadores de las
Universidades,peropone como condiciónque el mismose hará de acuerdo con el tiempode
servicioen la institución,para este aumento se tomará en cuenta lo
Siguiente:
a. Tiempo de serviciode 1 a 5 años; aumento 3%
b. Tiempode serviciode 5 a 10 años; aumento 5%
c. Tiempo de Serviciode 10 a 20 años; aumento 8%
d. Tiempode serviciode 20 años o más; aumento 12%
Realice el algoritmoasociadoalasituaciónanterior(Valor4%)
PRINCIPIODELALGORITMO, aumento
//Declaraciónde variables
variables
tiemserv,aumento:ENTERA
// Entrada de datos
SALIR(‘IntroduzcaTiempode Servicio:‘)
LEER(tiemserv)
//Procesamientode losdatos
SI (tiemserv>=1) and(tiemserv<5) ENTONCESHAGA
aumento= 3
SINOHAGA
SI (tiemserv>=5) and(tiemserv<=10) ENTONCES HAGA
aumento= 5
SINOHAGA
SI (tiemserv>=10) and(tiemserv<=20) ENTONCESHAGA
aumento= 8
SINOHAGA
4. SI (tiemserv>=20) ENTONCESHAGA
aumento= 12
SINOHAGA
aumento= 0
TERMINE SI
// Salidade datos
SALIR(‘El tiempode serviciodel empleadoes:‘,tiemserv,’ porlotantotendráun aumentode:
‘,aumento,‘%‘)
FIN DEL ALGORITMO, aumento