public void CalculaImpostoRenda(Salario salario)
 {
     if (salario.SalarioTotal() >= 3751.06M && salario.SalarioTotal() <= 4664.68M)
     {
         Console.WriteLine(636.13M);
     }
     else
     {
         salario.EstadoImposto = new AliquotaPercentual27();
     }
 }
示例#2
0
 public void CalculaImpostoRenda(Salario salario)
 {
     if (salario.SalarioTotal() >= 1903.99M && salario.SalarioTotal() <= 2826.65M)
     {
         Console.WriteLine(142.80M);
     }
     else
     {
         salario.EstadoImposto = new AliquotaPercentual15();
     }
 }
示例#3
0
 public void CalculaImpostoRenda(Salario salario)
 {
     if (salario.SalarioTotal() >= 2826.66M && salario.SalarioTotal() <= 3751.05M)
     {
         Console.WriteLine(354.80M);
     }
     else
     {
         salario.EstadoImposto = new AliquotaPercentual22();
     }
 }
示例#4
0
 public void CalculaImpostoRenda(Salario salario)
 {
     if (salario.SalarioTotal() <= 1903.99M)
     {
         Console.WriteLine(salario.SalarioTotal());
     }
     else
     {
         salario.EstadoImposto = new AliquotaPercentual7();
     }
 }
示例#5
0
 public void CalculaImpostoRenda(Salario salario) => Console.WriteLine(869.36M);