-
Lenguaje
Pascal
-
Descripción
Se les dará un bono por antigüedad a los empleados de una tienda. Si tienen un año, se les dará $100; si tienen 2 años, $200, y así sucesivamente hasta los 5 años. Para los que tengan más de 5, el bono será de $1000. Realice un programa que permita determinar el bono que recibirá un trabajador.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
program BonoPorAntiguedadDe5Anos;
uses crt;
var antiguedad, bono : integer;
begin
write ('Ingresa el valor de antiguedad: ');
readln (antiguedad);
if antiguedad<=5 then
begin
bono := antiguedad*100;
end
else
begin
bono := 1000;
end;
writeln ('Valor de bono: ', bono);
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.
uses crt;
var antiguedad, bono : integer;
begin
write ('Ingresa el valor de antiguedad: ');
readln (antiguedad);
if antiguedad<=5 then
begin
bono := antiguedad*100;
end
else
begin
bono := 1000;
end;
writeln ('Valor de bono: ', bono);
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.