Week008 MachineProblem3
Week008 MachineProblem3
Machine Problem 3
1
Objective/s:
At the end of this activity, you should be able to:
· define classes
· implement polymorphism and inheritance
· instantiate an object array
· apply Exception to all input validation
· create a banking application for multiple users
Procedure:
Create a NetBeans project for this activity. The project name should be as follows:
Project Name: MP3_<lastname_firstname>
Example: MP3_Blanco_Maria
The class names to be created are the following:
o Client (the main class that contains the main method and the implementation of the
main menu)
o SavingsAccount (the subclass where attributes and methods are defined)
o BankAccount (the superclass where attributes and methods are defined)
Compress the NetBeans project into .rar or .zip format and then upload to the link
provided in the LMS.
Only NetBeans project compressed in .rar or .zip format will be accepted. All other
formats will be graded with 0.
Assessments
Write a Java program with the following specifications:
3. Note that the SavingsAccount class will be inherited from the BankAccount class.
5. Note that the object to be instantiated in the main method is an object array.
For example: SavingsAccount[ ] sa = new SavingsAccount[100];
6. The program should have the main menu as shown below and will always loop back to the
main menu after each transaction.
JBank Main Menu
[1] New Account
[2] Balance Inquiry
[3] Deposit
[4] Withdraw
[5] Client Profile
[6] Close Account
[7] Exit
Assessments