Beispiel #1
0
 private static string GetLoanIndividual(double balance, double interestRate, uint numberMount)
 {
     Loan loanIndividual = new Loan(false,balance,interestRate);
     decimal rate = loanIndividual.CalculateInterest(numberMount);
     return String.Format("{0:F2}",rate+Environment.NewLine);
 }
Beispiel #2
0
 private static string GetLoanCompany(double balance, double interestRate, uint numberMount)
 {
     Loan loanCompany = new Loan(true,balance,interestRate);
     decimal rate=loanCompany.CalculateInterest(numberMount);
     return String.Format("{0:F2}", rate+Environment.NewLine);
 }