I am having a problem, with this python assignment, I am not really sure how to format this program and would like some help.   Program Assignment: Future Investment Value = investment amount * (1 + monthly interest)^(number of years * 12)  ^ - means raised to a power.  Using the formula above, write a function called futureValue that prompts the user to enter an investment amount, an annual percentage interest rate, and the amount of years.  This function should accept this input as arguments.  The interest rate should have a default value of 7%.  You can add default values of your choice for the amount of years.  This function should print out a table that displays the futures values.  Demonstrate this function in another function called main.  Format your output two decimal places.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 1TF: Mark the following statements as true or false: a. To use a predefined function in a program, you...
icon
Related questions
Question
I am having a problem, with this python assignment, I am not really sure how to format this program and would like some help.
 
Program Assignment:
Future Investment Value = investment amount * (1 + monthly interest)^(number of years * 12) 
^ - means raised to a power. 
Using the formula above, write a function called futureValue that prompts the user to enter an investment amount, an annual percentage interest rate, and the amount of years.  This function should accept this input as arguments.  The interest rate should have a default value of 7%.  You can add default values of your choice for the amount of years.  This function should print out a table that displays the futures values.  Demonstrate this function in another function called main.  Format your output two decimal places. 
 
Sample Run:
Enter the amount you want to invest: 1000 [Enter]
Enter the interest rate for your investment: 9 [Enter]
Enter the number of years you want to invest this money: 30 [Enter]
Years        Future Value
1              1093.81
2              1196.41
..........
30            14730.58
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning