Question: Write a MATLAB program that uses the function in problem 1 to calculate and plot the future amount from 0 to N years in steps
Write a MATLAB program that uses the function in problem 1 to calculate and plot the future amount from 0 to N years in steps of 0.5 years. The program will ask the user to enter values for P, A, N and i. Employ error checking (aka bulletproofing) to assure that that P and A are positive numbers, N is greater than or equal to 1, and i is in the range 0 to 1. The MATLAB code should be easy to read and should employ efficient programming techniques and good commenting style.
Function from problem 1:

Below is a sample plot for P = 10000, A = 1000, N = 30, i = 0.07:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
