Hi, all:
I've been trying to insert a Loop into my javascript codes so that for the table I am creating :
every previous year's ending total amount becomes next year's beginning principal. The webpage interface should be like:
PHP Code:
a button functions a calculation here says "Calculate"
Principal Period Rate Total Amount
input txtbox input txtbox input txtbox
so, if the user input "8" into the period textbox, the output should generate 8 additional rows displaying every year's amount.
create a Web site made up a single or two pages depending on how you implement it. That page(s) will use JavaScript to calculate the interest on a savings account. The page should have an input section in which the user enters the following values:
The initial amount deposited in a savings account.
The number of periods.
The interest rate per period.
Create a button on the page. When the user clicks the button, you should create a tabular interest rate schedule such that there is one row for each period. This table output might look something like:
PHP Code:
Principal Period Rate Total Amount
100.00 1 0.01 101.00
101.00 2 0.01 102.01
... ... ... ...
...
Adhere to the following as you create the page(s)
You can display the output in either a table or you can use CSS.
Below the table, display the total interest received.
You can display the table in a new Web page or on the same Web page containing the input controls.
Make sure that the page(s) are well-formed and well formatted.
I will be grateful if you help me out. Honestly, it took me days, I still can not figure it out. so sad.