Mini Quiz 3

All saving accounts have different interest rates based on the deposit amount.
In one bank for example, if the deposit is 1000 dollars or less, the interest rate is 1% per year, otherwise, the interest rate is 2% per year.

Write a program that inputs deposit amount. Program checks first, that the input is valid. For valid input, program calculates and prints the amount of money that will be in your saving account after one year. Apply the interest rate rule which is described above. For invalid input, program prints error message.