ComplexNumber class discussed in last
week's class.
Money class in this package.Money class
that only takes the number of dollars.
Money class
that takes no arguments and initializes the object to $0.00.equals() method to the Money
class.
MoneyOverflowException which can be thrown when an operation
with Money results in an over flow. Place this class
in the same finance package.
Money class so that
they recognize overflow and throw a
MoneyOverFlowException if it occurs.java.math package to
eliminate the possibility of overflow in the Money
class.
java.math.BigDecimal class to provide 20 decimal
digits of precision. Some hints:
setScale() method with every
iteration is necessary to keep the value of population from
overflawing the memory of the computer.
compareTo() and the
Comparable interface instead of either == or
equals().