using Matlab program:
Month Balance
1 $ ##.##
2 $ ##.##
3 $ ##.## . . . etc
Use the formula PMT=P*(r(1+r)^n)/((1+r)^n-1)
PMT = the monthly payment.
P = the principal
r = the interest rate per month, which equals the annual interest rate divided by 12
n = the total number of months
You can know if you have it right when the last month’s balance is $0.
clc; clear; close all; format bank; format compact
principal = input('Enter principal: ');
interest_rate = input('Enter annual interest rate: ');
months = input('Enter total number of months: ');
monthly_interest_rate = interest_rate/1200;
PMT = principal*(monthly_interest_rate*(1+monthly_interest_rate)^months)/((1+monthly_interest_rate)^months-1);
initialBalance = PMT*months;
printf('Month Balance\n');
i=1;
while(i<=months)
initialBalance = initialBalance - PMT;
printf('%d %.2f\n', i, abs(initialBalance));
i = i+1;
end
using Matlab program: Create a loan payment program that can be used for any loan amount...
MATLAB!!! CAN SOMEONE SOLVE THIS PROBLEM ON MATLAB?? THANK YOU PART B: HOUSING LOAN CALCULATOR In this part of the assignment, you are expected to develop a program that calculates housing loan pay- ments based on compound interest formulas The program should prompt a user to input the amount borrowed (principal), p, the number of monthly payments, n, and an annual interest rate in R percent. The program should convert the annual interest rate R into a monthly interest rate...
C# Create an application that will allow a loan amount, interest rate, and number of finance years to be entered for a given loan. Determine the monthly payment amount. Calculate how much interest will be paid over the life of the loan. Display an amortization schedule showing the new balance after each payment is made. Design an object-oriented solution. Use two classes. Loan class: characteristics such as the amount to be financed, rate of interest, period of time for the...
C++ Program - Loan Payment Report Please write a C++ program to generate a detail loan payment report from the first month until the loan balance becomes zero or less than ten cents. You may use a while loop such as: while (loanBalance >= monthPayment) { … }. When the loanBalance is less than the monthPayment, you need to compute the final payment amount, which should be the loanBalance plus its interest of one month. For example, if your last-month’s...
Write a python program for the below question? Car Loan If A dollars is borrowed at r% interest compounded monthly to purchase a car with monthly payments for n years, then the monthly payment is given by the formula monthly payment = i / 1 - (1 + i)-12n . A where i = r/1200. Write a program that calculates the monthly payment after the user gives the amount of the loan, the interest rate, and the number of years.
The program is in python :) Write a code program to calculate the mortgage payment. The equation for calculating the mortgage payment is: M = P (1+r)n (1+r)n-1 Where: M is your monthly payment P is your principal r is your monthly interest rate, calculated by dividing your annual interest rate by 12. n is your number of payments (the number of months you will be paying the loan) Example: You have a $100,000 mortgage loan with 6 percent annual...
19. Monthly Payments The monthly payment on a loan may be calculated by the following formula: Rate (1Rate) ((1 Rate)N - 1) Payment - Rate is the monthly interest rate, which is the annual interest rate divided by 12" (12% annual interest would be 1 percent monthly interest.) N is the number of payments, and L is the amount of the loan. Write a program that asks for these values and displays a report similar to Loan Amount: Monthly Interest...
c++ and please add tables and everything and make sure program is complete. Write a menu driven program, which would compute compound interest and a monthly payment for a loan. The user will be given a choice to display the info on the screen or to a filo Menu will be the following Enter (1) to calculate your loan monthly payment Enter (2) to calculate your loan monthly payment & write to a file Tips: Compound Interest Formula A =...
In C. Thank you! Bank Write a program to calculate the monthly payment on a loan given the loan amount, interest rate and the number of years to pay off the loan. Then add a function to print an amortization schedule for that loan. Create a class to save the current balance and the rest of the data as private data. Add member functions to make a payment and to print the amortization report. Use the following class header. Class...
In Chapter 1 of the text we looked at calculating a monthly payment for a loan. A related formula is to calculate the amount accruing when regular payments are made into an interest bearing account - often called the Savings Plan formula. (A is the accrued amount after t years of making regular payments, PMT, into an account at interest rate, r%, compounded ntimes each year.) A(t) = PMT·((1 + r/N)N·t - 1)/(r/N) = PMT*((1 + r/N)^(N*t) - 1)/(r/N) The...
1. In Cell D8 create formula PMT=PV/((1-1/(1+k)^n)/k), to calculate the periodic payment on a loan. 2. In cell F8 use built-in function =PMT(k,n,PV). You should get identical answers. 3. Create amortization table (use absolute and relative addressing where appropriate). 4. Print worksheet. 5. Change loan amount and the rate (everything should adjust automatically) and print it again. 6. Print the cell formulas (force to one page). 7. Write report and explain all formulas and procedures. 8. Submit four printouts. PMT=$1589.99...