Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- principal = input()
- print('Enter the Principal Value of your investment: $', float(principal))
- time = input()
- print('\nEnter the Time(in years) you plan to save your investment: ', int(time))
- rate = input()
- print('\nEnter the Rate (2% = 0.02) you will collect on your investment: ', float(rate))
- interest = (float(principal) * float(rate)) * int(time)
- final_value = float(principal) + float(interest)
- print('\nThe Final Value of your investment will be: $%.2f' % final_value)
Advertisement
Add Comment
Please, Sign In to add comment