minicl55

Untitled

Oct 5th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. TextWindow.Title="Savings Calculator"
  2. YourName = ""
  3. Deposit = 0
  4. Months = 0
  5. Total = 0
  6. TextWindow.WriteLine("Hello, what is your name?")
  7. YourName = TextWindow.Read()
  8. TextWindow.Clear()
  9. TextWindow.WriteLine("How much will you deposit each month?")
  10. Deposit = TextWindow.ReadNumber()
  11. TextWindow.Clear()
  12. TextWindow.WriteLine("For how many months?")
  13. Months = TextWindow.ReadNumber()
  14. TextWindow.Clear()
  15. Total = Deposit * Months
  16. TextWindow.WriteLine(yourName + ", after " + months +" months, you will have $" + total + " in your savings.")
Advertisement
Add Comment
Please, Sign In to add comment