Define a A11NumberedAccount class that has the functionality of the NumberedAccount class of Assignment 10, except that
compareTo method that is used to implement the Comparable interface is to compare account numbers rather than account holders.
A11NumberedAccount class is to have static methods getCustomerComparator() and getBalanceComparator() that return respectively a Comparator that compares account holders (as in Assignment 10) and a Comparator that compares balances (where larger balances are to precede smaller balances). These returned objects are to be Comparator objects in the sense that they implement the Comparator interface. You may define the corresponding classes as inner classes of the A11NumberedAccount class.
toString method is to format the account balances so that they have exactly two decimal places. You may consult Advanced Topic 3.5 on page 109 of the textbook to see how to do this.
A11NumberedAccount class is to override the methods equals and clone of the Object class. The equals method should not assume that account numbers are unique identifiers (note that this means that accounts may be equal in the sense of compareTo or Compare while being unequal in the sense of equal). The clone method may be taken without change from page 464 of the textbook.
As always, you may define any private methods that you find helpful.
For this assignment, you should provide a copy of your code on diskette (no CD or email), and hard copies of your code and the results of your testing with the file A11.java, which is provided on the class web site. Note that although this file uses exception handling and the ArrayList class, you don't need to worry about either concept when you define your A11NumberedAccount class.
Recall that the BankAccount class is available by following the Java Examples and Bank links from the class home page.