Beispiel #1
0
        //métodos
        public double tarifaConta(BaseConta bcnCom)
        {
            double consumo = bcnCom.consumo_MtdConta();

            valorTotal_AtrbContaC = (((0.35 * consumo) + 9.25) + (((0.35 * consumo) + 9.25) * 0.18));
            return(valorTotal_AtrbContaC);
        }
Beispiel #2
0
        //métodos
        public double tarifaConta(BaseConta bcntRes)
        {
            //bcntRes-->o objeto que setou os valores de leituraAtual e leituraAnterior
            double consumo = bcntRes.consumo_MtdConta();

            valorTotal_AtrbContaR = (((0.4 * consumo) + 9.25) + (((0.4 * consumo) + 9.25) * 0.3));
            return(valorTotal_AtrbContaR);
        }