2
program impuestoanual; {Programador: Doris Rojas Fecha:18/05/2015 Proposito: Este Programa Realizara el Calculo de Impuesto Anual que debe Cancelar un Contribuyente de Nuestro Pais} uses crt; const msjerror='Error, Valor Invalido'; a=0.10; b=0.20; c=0.30; d=0.34; e=0.38; var nomb:string[50]; ced:longint; porcentaje:integer; enriquecimiento,deduccion,total:real; begin clrscr; writeln('Introduzca el Nombre Completo del Contribuyente: '); readln(nomb); writeln('Introduzca la Cedula: '); readln(ced); writeln('introduzca el Monto Optenido En el A¤o, Conocido como Enriquecimiento en Bs.'); readln(enriquecimiento); clrscr; if(enriquecimiento<=0) then begin writeln(msjerror); readln; end else begin if(enriquecimiento>=1) and (enriquecimiento<=100000)then begin deduccion:=enriquecimiento*a; total:=enriquecimiento-deduccion; porcentaje:=10; end; if(enriquecimiento>=100001) and (enriquecimiento<=180000) then begin deduccion:=enriquecimiento*b; total:=enriquecimiento-deduccion; porcentaje:=20; end; if(enriquecimiento>=180001) and (enriquecimiento<=220000) then begin deduccion:=enriquecimiento*c;

Imp Anual

Embed Size (px)

DESCRIPTION

programacion pascal impuestos

Citation preview

Page 1: Imp Anual

program impuestoanual;{Programador: Doris Rojas Fecha:18/05/2015Proposito: Este Programa Realizara el Calculo de Impuesto Anualque debe Cancelar un Contribuyente de Nuestro Pais}uses crt;const msjerror='Error, Valor Invalido'; a=0.10; b=0.20; c=0.30; d=0.34; e=0.38;var nomb:string[50]; ced:longint; porcentaje:integer; enriquecimiento,deduccion,total:real;begin clrscr; writeln('Introduzca el Nombre Completo del Contribuyente: '); readln(nomb); writeln('Introduzca la Cedula: '); readln(ced); writeln('introduzca el Monto Optenido En el A¤o, Conocido como Enriquecimiento en Bs.'); readln(enriquecimiento); clrscr; if(enriquecimiento<=0) then begin writeln(msjerror); readln; end else begin if(enriquecimiento>=1) and (enriquecimiento<=100000)then begin deduccion:=enriquecimiento*a; total:=enriquecimiento-deduccion; porcentaje:=10; end; if(enriquecimiento>=100001) and (enriquecimiento<=180000) then begin deduccion:=enriquecimiento*b; total:=enriquecimiento-deduccion; porcentaje:=20; end; if(enriquecimiento>=180001) and (enriquecimiento<=220000) then begin deduccion:=enriquecimiento*c; total:=enriquecimiento-deduccion; porcentaje:=30; end; if(enriquecimiento>=220001) and (enriquecimiento<=350000) then begin deduccion:=enriquecimiento*d; total:=enriquecimiento-deduccion; porcentaje:=34; end; if(enriquecimiento>=350001) then begin

Page 2: Imp Anual

deduccion:=enriquecimiento*e; total:=enriquecimiento-deduccion; porcentaje:=38; end; writeln('El Contribuyente: ',nomb); writeln('Cedula de Identidad: ',ced); writeln('Obtubo un Ingreso Anual de: ',enriquecimiento:0:2,' Bs.'); writeln('Por lo Tanto, Tendra un Descuento del ',porcentaje,' porciento en Impuestos'); writeln('Equivalente a :',deduccion:0:2,' Bs.'); writeln('Quedando asi con un Total de Enriquecimiento de: ',total:0:2,' Bs.'); readln; endend.