Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is MATLAB question. Please use MATLAB and help me NO.4 question only in detail. The interest you get at the end of n year,
This is MATLAB question. Please use MATLAB and help me NO.4 question only in detail.
The interest you get at the end of n year, at a flat annual rate of r%, depend on how the interest in compounded If the interest is added to your account k times a year with the principal amount of Xo, then at the end of n years the amount of your account X b 1.Write the function, fn-interest to find the interest paid on XO (Interest-X-%) 2 Write a script called Bankint and input n, f k and output the result in the following format by using the function, fn_interest. The principal amount of $ Xo in n years with interest rate of r% becomes $ X when interest is compounded K times a year. Your earning aount is SXxo). 3, Run the script with principal of $1000 at the rate of 6% for five years term when the the interest is compounded; (i) quarterly (k=4) (ii)daily" (k=365) (iii) annually ( 1) and compare the interest paid on X " ("Do not consider the leap year effect for daily) 4.Plot the bar graph which shows the interest in five years with above compound interval. Label x-axis with "compound interval, 1: Quarterly, 2: Daily, 3: Annually", and y-axis with Interest, $". Add title with "Earned interest for 5 years term with 6% interest rate". You may set the y-axis limit with ylim([min max]). For plotting "bar" graph, use "bar" instead of "plotStep 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