Ejemplo n.º 1
0
        public void BorrowMoney(float months, float amount)
        {
            float interest = CalculateBorrowInterest(months, amount);
            Debt  d        = Debt.Create(this, amount, interest / 12.0f, (int)months);

            Debts.Add(d);
            Cash += amount;
        }
Ejemplo n.º 2
0
 public static Debt Create(Bank debtor, float amount, float interest, int months)
 {
     Debt d = new Debt();
     d.Debtor = debtor;
     d.Principal = amount;
     d.Interest = interest;
     d.Months = months;
     return d;
 }
Ejemplo n.º 3
0
        public static Debt Create(Bank debtor, float amount, float interest, int months)
        {
            Debt d = new Debt();

            d.Debtor    = debtor;
            d.Principal = amount;
            d.Interest  = interest;
            d.Months    = months;
            return(d);
        }