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...


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.


Nov 24, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here