Please complete parts a through d of the following problem B
Please complete parts (a) through (d) of the following problem. Be sure to include a table with your results and a listing of the MATLAB commands you used to compute these results.
5. Compound interest. Suppose a dollars are deposited in a bank that pays 5% interest per year, compounded quarterly. After one quarter the value of the account is ao × (1 + (0.05)/4) dollars. At the end of the second quarter, the bank pays interest not only on the original amount ao, but also on the interest earned in the first quarter; Copyrighted CHAPTER thus the value of the incetcat at the end e second quaneri thus the value of the investment at the end of the second quarter is [ao x (1 + (0.05)/4)] x (1 + (0.05)/4) = ao x (1 + (0.05)/4 )2 dollars. At the end of the third quarter the bank pays interest on this amount, so that the account is now worth ao x (1(0.05)/4)3 dollars, and at the end of the whole year the investment is finally worth ao x (1 (0.05)/4)4 dollars. In general, if ao dollars are deposited at an annual interest rate x compounded n times per year, then the account value after one year is I\"(x)=(1+- )\" aoxT\"(x) whereSolution
<html>
 <head>
 <title> Distance calculater
 <body>
 <h2>Distance calculater</h2>
 <p>
 Numbers are selected between <input type=\"text\" id=\"minBox\" size=3 value=0>
 and <input type=\"text\" id=\"maxBox\" size=3 value=9>.
 </p>
 <script type=\"text/javascript\" src=\"../common.js\"></script>
 <script type=\"text/javascript\">
 function calculate() {
 var x1=parseFloat(document.getElementById(\"x1\").value);
 var y1=parseFloat(document.getElementById(\"y1\").value);
 var x2=parseFloat(document.getElementById(\"x2\").value);
 var y2=parseFloat(document.getElementById(\"y2\").value);
 var xx1=Math.pow((x2-x1),2);
 var yy1=Math.pow((y2-y1),2);
 var res=\"=sqrt((x2-x1)^2+(y2-y1)^2)\ \";
 res+=\"=sqrt((\"+x2+\"-\"+x1+\")^2+(\"+y2+\"-\"+y1+\")^2)\ \";
 res+=\"=sqrt(\"+xx1+\"+\"+yy1+\")\ \";
 res+=\"=sqrt(\"+(parseFloat(xx1)+parseFloat(yy1))+\")\ \";
 res+=\"=\"+Math.sqrt(parseFloat(xx1)+parseFloat(yy1))+\"\ \";
 res+=\"=\"+Math.round(Math.sqrt((parseFloat(xx1)+parseFloat(yy1)))*10000)/10000;
  document.getElementById(\"result1\").value=res;
 }
 </script>
<input type=\"button\" value=cordinate 1
 onclick=\"min=parseFloat(document.getElementById(\'minBox\').value);
  max=parseFloat(document.getElementById(\'maxBox\').value);
 number=Math.floor(Math.random()*(max-min+1)) + min;
 document.getElementById(\'outputDiv\').innerHTML=
 \'\' + number;\">
 input type=\"button\" value=cordinate 2
 onclick=\"min=parseFloat(document.getElementById(\'minBox\').value);
  max=parseFloat(document.getElementById(\'maxBox\').value);
 number=Math.floor(Math.random()*(max-min+1)) + min;
 document.getElementById(\'outputDiv\').innerHTML=
 \'the distance between x y\' + number;\">
 <hr>
 <div id=\"outputDiv\"></div>
 </body>
 </html>

