示例#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);
 }
示例#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);
 }