package Sistema;

/**
 *
 * @author Thauan
 */
public class LCIeLCA extends Investimentos {

    /*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
     */
    private Double taxaLCI;//0.9202%
    private Double taxaLCA; //0.8912;%

    public LCIeLCA(Double valor, int tempo) {
        this.valor = valor;
        this.tempo = tempo;
    }

    @Override
    public Double previsaoRetorno() {
        if (tipo.equalsIgnoreCase("LCI")) {
            return simuladorLCI();
        } else if (tipo.equalsIgnoreCase("LCA")) {
            return simuladorLCA();
        } else {
            return null;
        }
    }

    public Double simuladorLCI() {
        Double retorno = this.valor;

        for (int i = 0; i < tempo; i++) {
            retorno += ((retorno * taxaLCI) / 100);
        }

        return retorno;
    }

    public Double simuladorLCA() {
        Double retorno = this.valor;

        for (int i = 0; i < tempo; i++) {
            retorno += ((retorno * taxaLCA) / 100);
        }

        return retorno;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    public Double getValor() {
        return this.valor;
    }

    public int getTempo() {
        return this.tempo;
    }

    public Double getTaxaLCI() {
        return taxaLCI;
    }

    public void setTaxaLCI(Double taxaLCI) {
        this.taxaLCI = taxaLCI;
    }

    public Double getTaxaLCA() {
        return taxaLCA;
    }

    public void setTaxaLCA(Double taxaLCA) {
        this.taxaLCA = taxaLCA;
    }

}

@@ -1734,11 +1734,111 @@
    %7D%0D%0A%0D%0A
+    @Override%0D%0A    public void setMensal(boolean Mensal) %7B%0D%0A        this.mensal = mensal;%0D%0A    %7D%0D%0A%0D%0A
 %7D%0D%0A

Update LCIeLCA.java