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. Different methods using java programming

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter4: Control Structures I (selection)
Section: Chapter Questions
Problem 20PE: The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a...
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. Different methods using java programming
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 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