-
Lenguaje
Pascal
-
Descripción
Una Agencia de Viajes cobra por un Tour a la ciudad de Caral por 350 soles por persona. Realice un algoritmo que determine el monto a pagar por una familia que desee realizar dicho Tour sabiendo que también se les va a cobrar el 18% del IGV.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
program TourACaral;
uses crt;
var IGV, numero_de_personas, subtotal, total : real;
begin
write ('Ingresa el valor de numero de personas: ');
readln (numero_de_personas);
subtotal := numero_de_personas*350;
IGV := subtotal*0.18;
total := subtotal+IGV;
writeln ('Valor de IGV: ', IGV:0:6);
writeln ('Valor de subtotal: ', subtotal:0:6);
writeln ('Valor de total: ', total:0:6);
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.
uses crt;
var IGV, numero_de_personas, subtotal, total : real;
begin
write ('Ingresa el valor de numero de personas: ');
readln (numero_de_personas);
subtotal := numero_de_personas*350;
IGV := subtotal*0.18;
total := subtotal+IGV;
writeln ('Valor de IGV: ', IGV:0:6);
writeln ('Valor de subtotal: ', subtotal:0:6);
writeln ('Valor de total: ', total:0:6);
writeln;
write ('Presiona una tecla para terminar . . . ');
readkey;
end.