Choose the right names
The name HW3_DollarValuOfCoinsInvestmentCompoundedAnnually
is not great.
For one thing, class names in Java should use CamelCase
,
which is violated by the _
there.
The current name includes the 2 purposes used in the class:
- Calculate the dollar value of coins
- Calculate the compound interest
Since these are completely different things, either split the class into 2 separate classes, or give it a more generic name.