Define a class Client, which has attributes Name

profileThehonest
 (Not rated)
 (Not rated)
Chat

Program 4

Define a class Client, which has attributes Name, Address, PhoneNumber which are Strings. ClientNumber an integer and amountDue a double. Write methods which allow you to accept payments from clients and lend clients money, as well as getters and setters for all attributes. Make the class Serializable. Write a main class which uses a list of type ArrayList to hold the Clients while you perform transactions on them. Your menu should allow you to add new clients, accept payments from clients using the client’s name, make loans, look up a client’s balance, remove a client, list all clients names and amount due and add up all the amountsDue from your clients. You should use a binary file to save the list when you quit and restore it when you start up again.

 

 

 

    • 8 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      cq_11.zip