Purpose: To write nested iterator (for loop) statements. To use the character conversion specification in the output. To figure out how to code based on customers desires. (The customer is the instructor). To learn to ask questions.

1.Re-use program #8 and where you wrote a function with the formula for simple interest payment i = P R T.

a.The function shall have inputs principal, interest rate and time.

b.The function shall return the amount of interest at the end of the time period.

c.The student is responsible for using the correct formulas.

d.The function shall not error check the input.

e.The function shall not contain any print statements

2.In the main part of the program, use two iterator statements (for loops). Call the function as many times as necessary to correctly implement this assignment. Do NOT add extra lines or tables to the output

3.Example of the output:

99 Nested Neil Miserendino


Interest rate 5% Table
Principal Time Interest
$1000.00 .5 $---
$1000.00 .1 $
$1000.00 1.5 $
$1000.00 2.0 $

Interest rate 6% Table
Principal Time Interest
$1000.00 .5 $
$1000.00 .1 $
$1000.00 1.5 $
$1000.00 2.0 $ ---
^^ The actual results in numbers go in the interest column
… Assume 3 more tables for 7%, 8% and 9% interest
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.