Guest User

I hate python

a guest
Sep 25th, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. principal = input()
  2. print('Enter the Principal Value of your investment: $', float(principal))
  3.  
  4. time = input()
  5. print('\nEnter the Time(in years) you plan to save your investment: ', int(time))
  6.  
  7. rate = input()
  8. print('\nEnter the Rate (2% = 0.02) you will collect on your investment: ', float(rate))
  9.  
  10.  
  11. interest = (float(principal) * float(rate)) * int(time)
  12. final_value = float(principal) + float(interest)
  13. print('\nThe Final Value of your investment will be: $%.2f' % final_value)
Advertisement
Add Comment
Please, Sign In to add comment