1. Alter Exercise 16.1 so it handles double values instead.
2. Write a program which calculates one year’s interest on an initial amount. The user inputs the initial amount and the interest per year as a percentage value (double values). Provide exception handling for non-numeric input.
3. Write a program which inputs a string from a text field, representing a date in the form MM/DD/YY (e.g. 03/02/01). Use StringTokenizer to split it up, and produce an error message if an item is non-numeric, missing completely or specifies an impossible date. Ignore leap years.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here