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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started