Question: I need help with this using JavaScript and HTML Modify the compound interest program presented in my JS Control Statements and Loops slides (p. 16-18)
Modify the compound interest program presented in my JS Control Statements and Loops slides (p. 16-18) so that it calculates and displays the amount of money in the account and the amount accumulated from the interest at the end of each year using an html form for the corresponding input and output. The input boxes can be labeled "Principal", "Rate" and "Years". The two output boxes can be labeled Amount" and "Interest". The form should provide also two buttons "Calculate" and "Clear" as shown below. How Your Investment Gro xHowYour Investment Gro How YoUR IVESTMENT GROWS Principal 2000 Rate 5 Years 10 Amount 3257 79 Interest 1257.79 Calculate Clear Click Refresh (or Reload) to run this script again
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
