Question: Write a Python program to calculate the Future Value ( FV ) of an investment where the interest rate ( r ) varies based on

Write a Python program to calculate the Future Value (FV) of an investment where the interest rate (r) varies based on the size of the Present Value (PV). The program should use nested if-elif-else statements to apply different interest rates and calculate the FV.
FV formula: Use the below formula to compute and print the FV.
=(1+)
Requirements:
Input: To receive the below two input values, use two input() functions to prompt a user to enter below two numbers.
Present Value (PV) as a float.
Number of years (n) as an integer.
Condition:
If PV <1000, then r =0.03
If 1000<= PV <5000, then r =0.04
If PV >=5000, then r =0.05
Output: Calculate and print the Future Value (FV) using the formula

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!