This Find Simple Interest application will ask user to specify
the amount of a loan, an interest rate, and the number of years.
The application calculates and display the simple interest for the
given loan at the specified interest for a specified number of years.
Please enter the amount of loan: enter a negative number
Entry must be an integer greater than 0 Please try again.
Please enter the amount of loan: enter a positive number
Please enter the interest rate: enter a negative number
Entry must be a floating number greater than 0.0 Please try again.
Please enter the interest rate: enter a positive number
Please enter the number of years: enter a negative number
Entry must be an integer greater than 0 Please try again.
Please enter the number of years: enter a positive number
The interest on a loan of $___ at _.__% interest rate for __ years
is $___.
Do you want to do another calculation? (y for yes) enter y
Please enter the amount of loan: enter a positive number
Please enter the interest rate: enter a positive number
Please enter the number of years: enter a positive number
The interest on a loan of $___ at _.__% interest rate for __ years
is $___.
Do you want to do another calculation? (y for yes)n
Done!
|