Question: Modify the compound interest program in: that will repeat its steps for interest rates 5,6,7,8,9 and 10 percent. Use a for statement to vary the
Modify the compound interest program in: that will repeat its steps for interest rates 5,6,7,8,9 and 10 percent.
Use a for statement to vary the interest rates
Use a separate table for each rate.
Table { width: 300px;
Border-collapse: collapse;
Background-color: orange;
}
Table, td, th { border: 1px solid black;
Padding: 4px; }
Th { text-alarm: left;
Color: white;
Background-color: darkblue; }
Tr.oddrow { background-color; white; }
Var amount; // current amount of money
Var principal = 1000.00; // principle amount
Var rate = 0.05; // intrest rate
Document.writeln(
| Year | ); // year colum headingAmount on deposit | ); // amount column heading
|---|---|
| + year + | + amount.toFixed(2) + |
| + year + | + amount.toFixed(2) + |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
