Question: I need this small function in mat lab.. Function Stub Example The lump sum S to be paid when interest on a loan is compounded
Function Stub Example The lump sum S to be paid when interest on a loan is compounded annually is given by S P i)n where P is the principal invested, i is the interest rate and n is the number of years. Write a program that will plot the amount S as it increases through the years from 1 to n. The main script will call a function to prompt the user for the number of years (and error-check to make sure that the user enters a positive integer). The script will then call a function that will plot S for years 1 through n. It will use.o5 for the interest rate and s1o,oo0 for P
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
