Computer Compound Interest Write a JavaScript program which will first ask user to enter principal amount. This page says Please enter the principal amount 1000 OK Cancel It will then ask user to enter interest rate. This page says Please enter the percentage of interest rate 51 OK Cancel For example, the user entered 1,000 for the principal and 5 percent as interest rate. You will program will output ten-year annual year end principals as shown below Calculating Compound Interest Amount on deposit Year 1 1050.00 2 1102.50 3 1157.63 4 1215.51 5 1276.28 6 1340.10 7 1407.10 8 1477.46 9 1551.33 1628.89 10
Note there are three different background colors. Year 1, 4, 7, and 10 all have yellow color. Year 2,5, and 8 are in blue color. Year 3, 6, and 9 all have white color. The heading can be any color of your choice. If the user entered 2,000 and 10 percent as principal and interest rate, then the inputs and output are shown below This page says Please enter the principal amount 2000 OK Cancel This page says Please enter the percentage of interest rate 10 OK Cancel Calculating Compound Interest Amount on deposit Year 1 2200.00 2 2420.00 3 2662.00 4 2928.20 5 3221.02 la un 6 3543.12 7 3897.43 8 4287.18 9 4715.90 10 5187.48
Computer Compound Interest Write a JavaScript program which will first ask user to enter principal amount. This page say
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Computer Compound Interest Write a JavaScript program which will first ask user to enter principal amount. This page say
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!