Java Reference
In-Depth Information
The answer is available on the topic's website at
http://www.java21days.com.
Visit the
Day 2 page and click the Certification Practice link.
To extend your knowledge of the subjects covered today, try the following exercises:
1.
Create a program that calculates how much a $14,000 investment would be worth
if it increased in value by 40% during the first year, lost $1,500 in value the second
year, and increased 12% in the third year.
2.
Write a program that displays two numbers and uses the
/
and
%
operators to dis-
play the result and remainder after they are divided. Use the
\t
character escape
code to separate the result and remainder in your output.
2
Where applicable, exercise solutions are offered on the topic's website at
http://www.