/*
 * 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.
 */
package Sistema;

/**
 *
 * @author Bruno
 */
public class CDBeLC implements Investimentos {

    private double taxaCDB;
    private double taxaLC;

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

    @Override
    public Double previsaoRetorno() {
        if (tipo.equalsIgnoreCase("CDB")) {
            return simuladorCDB();
        } else if (tipo.equalsIgnoreCase("LC")) {
            return simuladorLC();
        } else {
            return null;
        }
    }

    public double simuladorCDB() {
        Double retorno = this.valor;

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

        return retorno;
    }

    public double simuladorLC() {
        Double retorno = this.valor;

        for (int i = 0; i < tempo; i++) {
            retorno += ((retorno * taxaLC) / 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 getTaxaCDB() {
        return taxaCDB;
    }

    public void setTaxaCDB(Double taxaCDB) {
        this.taxaCDB = taxaCDB;
    }

    public Double getTaxaLC() {
        return taxaLC;
    }

    public void setTaxaLC(Double taxaLC) {
        this.taxaLC = taxaLC;
    }

}

@@ -228,16 +228,24 @@
 or Bruno
+/Gabriel
 %0D%0A */%0D%0Ap
@@ -267,17 +267,14 @@
 eLC 
-implement
+extend
 s In
@@ -367,19 +367,22 @@
  CDBeLC(
-int
+Double
  valor, 
@@ -750,33 +750,33 @@
 %7D%0D%0A%0D%0A    public 
-d
+D
 ouble simuladorC
@@ -977,17 +977,17 @@
  public 
-d
+D
 ouble si
@@ -1700,11 +1700,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 CDBeLC.java