CIS 171 Java Programming
Chapter 9 – Assignment
Instructions:
Part 1:
Create a BankAccount class that inherits from the attached Account class. The BankAccount class should include the following new members. Choose the most appropriate access types for these members:
AccountNum 6 positions, Integer, 000000 invalid
AccountFirstName 20 positions, String, Required
AccountLastName 30 positions, String, Required
Include all related new methods in the new class. Any mutator methods of the new members should validate the content. If the content is invalid place the value of 999999 or ‘Invalid’ in the variable depending upon data type.
Part 2:
Create an application class called BankAccountTest that will use the BankAccount class. This application should allow the user to setup a new account, add or subtract from the balance and display a report that included the account information and a list of all transactions, including a running balance.
This application should use each of the BankAccount’s methods and properties in an efficient and logical way.
Hint:
Part 3
Use the following Account Class for inheritance. Class for Exercise 9