public DebtToPay(DeductionCLT creditValue, double billBank, double educationCourse, double INSS) { //Console.WriteLine("\nValor das dividas previstas: R$" + GetTotalOfDebt()); ///*SetValues -- Test*/ ////Simulation of month August //SetEducationCourses(330.50); //SetOthersPayment(160); //SetBillBank(171.50); //SetSaveMoney(creditValue.GetSalaryLiquido() * 0.4); SetBillBank(billBank); SetSaveMoney(creditValue.GetSalaryLiquido() * 0.4); SetEducationCourses(educationCourse); SetOthersPayment(INSS); if (creditValue.GetSalaryLiquido() > GetTotalOfDebt()) { Console.WriteLine("\nValor restante: R$" + ((creditValue.GetSalaryLiquido() - GetSaveMoney()) - GetTotalOfDebt())); } else { Console.WriteLine("Valor das dívidas supera o valor disponível ... "); } }
public PredictionForSaveMoney(String month, DeductionCLT actualSalary, double valueBalance) { //Simulator SetActualBalance(valueBalance); SetDepositMonthly(actualSalary); SetIrProfitability(0.225); SetTaxProfitability(0.064); SetTotalValue(GetActualBalance() + GetDepositMonthly()); double totalInvesment = (GetTotalValue() * GetTaxProfitability() / 12) * (1 - GetIrProfitability()); Console.Write("\nValor da merreca : " + totalInvesment); SetTotalValue(GetTotalValue() + totalInvesment); Console.Write("||||||||||||||| Valor do mês [" + month + "]: R$" + GetTotalValue()); }
//Add another variables --> resources public Comparative(DeductionCLT actualSalary, DeductionCLT salaryToCompare) { SetActualSalary(actualSalary); SetSalaryToCompare(salaryToCompare); if (GetActualSalary() < GetSalaryToCompare()) { Console.WriteLine("Percentual ganho: " + (GetSalaryToCompare() - GetActualSalary()) / GetActualSalary() + " %"); Console.WriteLine("Diferença líquida: R$" + (GetSalaryToCompare() - GetActualSalary())); } else { Console.WriteLine("O salário atual é maior."); } }
public void SetDepositMonthly(DeductionCLT actualSalary) { depositMonthly = actualSalary.GetSalaryLiquido() * 0.4; }
public void PercentageBillSalary(DeductionCLT salary) { Console.WriteLine("Percentual da conta: " + (GetPriceBill() * 100) / salary.GetSalaryLiquido()); }
public void SetSalaryToCompare(DeductionCLT salaryToCompare) { this.salaryToCompare = salaryToCompare.GetSalaryLiquido(); }
//SET method public void SetActualSalary(DeductionCLT actualSalary) { this.actualSalary = actualSalary.GetSalaryLiquido(); }