(Compound Interest) Modify the compound interest program of Section to repeat its steps for the interest rates 5%, 6%, 7%, 8%, 9% and 10%. Use a for statement to vary the interest rate.
Section Examples Using the for Statement
• Standard library function pow(x, y) calculates the value of x raised to the yth power. Function pow takes two arguments of type double and returns a double value.
• Parameterized stream manipulator setw specifies the field width in which the next value output should appear, right justified by default. If the value is larger than the field width, the field width is extended to accommodate the entire value. Stream manipulator left causes a value to be left justified and right can be used to restore right justification.
• Sticky output-formatting settings settings remain in effect until they’re changed.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.