Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN MATLAB The formula for calculating a car payment is given in the document 'Amortization' in Blackboard in the folder Assignment #3. Given one car
IN MATLAB
The formula for calculating a car payment is given in the document 'Amortization' in Blackboard in the folder Assignment #3. Given one car price (P), one interest rate per period (r), and multiple possible payment times (n), compute the monthly payment amount and store the result as variable A
Example:
Input P = 20000, r = .035/12 (3.5% annual rate)
n = [36 48 60] (months)
Output A = [586.0416 447.1200 363.8349]
function A = CarPay(P,r,n)
%replace the line below with the code to compute the monthly payment A = P;
end
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started