コード例 #1
0
 public void amortitizeThis(int paymentCycle)
 {
     Console.WriteLine("Payment " + paymentDate.ToString("MMMM, yyyy"));
     Console.WriteLine("\tTotal Paid: " + LoanHelper.FormatNumberToCurrency(payment) +
                       " | Principle Paid: " + LoanHelper.FormatNumberToCurrency(principlePaid) +
                       " | Interest Paid: " + LoanHelper.FormatNumberToCurrency(interestPaid) +
                       " | Total Interest: " + LoanHelper.FormatNumberToCurrency(totalInterest) +
                       " | Amount Remaining: " + LoanHelper.FormatNumberToCurrency(remainingBalance));
 }
コード例 #2
0
 public string displayTotalRepayment()
 {
     return(LoanHelper.FormatNumberToCurrency(TotalRepayment));
 }
コード例 #3
0
 public string displayMonthlyPayment()
 {
     return(LoanHelper.FormatNumberToCurrency(MonthlyPayment));
 }