Question: I cannot seem to figure this out on MATLAB. I have uploaded the question as a photo below: The formula to calculate the compound interest

I cannot seem to figure this out on MATLAB. I have uploaded the question as a photo below:
The formula to calculate the compound interest is given by
A=P(1+rn)nt
Where A is the total value of the loan, P is the principal
investment amount, r is the interest rate, n is the number of
compounds per period (HINT: If interest is compounded monthly,
there are 12 months in an year) and t is number of periods.
Create a MATLAB script that uses the input() function to ask the
user for the values of P,r and t, and calculates the value of A. Print
the format the value of A using the fprintf() function.
You should test your script using different values for the inputs,
and confirm it works as expected.
 I cannot seem to figure this out on MATLAB. I have

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!