ate the amount that you will have after a specific number of months. The formula is: F=P x (1 + i)^t F: future value of the account after the specified time period P: present value of the account i: monthly interest rate t: the number of months Write a program (by using two methods) that prompts you to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these three values to a sub-method. Finally, the program should display the account’s future va

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 30PE
icon
Related questions
Question
Suppose you have a certain amount of money in a savings account that earns monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is: F=P x (1 + i)^t F: future value of the account after the specified time period P: present value of the account i: monthly interest rate t: the number of months Write a program (by using two methods) that prompts you to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these three values to a sub-method. Finally, the program should display the account’s future value.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,