Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Procedure: Create a NetBeans project for this activity. The project name should be as follows: Project Name: MP 3 _ Example: MP 3 _ Blanco
Procedure:
Create a NetBeans project for this activity. The project name should be as follows:
Project Name: MP
Example: MPBlancoMaria
The class names to be created are the following:
oClient the main class that contains the main method and the implementation of the main menu
oSavingsAccount the subclass where attributes and methods are defined
oBankAccount the superclass where attributes and methods are defined
All class names must be suffixed with your last name.
oClient Ex ClientBlanco
oSavingsAccount Ex SavingsAccountBlanco
oBankAccount Ex BankAccountBlanco
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
Write a Java program with the following specifications:
Define the following attributes and methods of the BankAccount class:
oAttributes: accountName, address, birthday, contactNumber
oConstructor
oSetter and Getter methods
ogetClientDetails method
Define the following attributes and methods of the SavingsAccount class:
oAttribute: accountNo, balance, interestRate
oConstructor
oSetter and Getter methods
obalanceInquiry method
odeposit method
owithdraw method
ovalidateAcctNumber method
ocloseAccount method
Note that the SavingsAccount class will be inherited from the BankAccount class.
Define the following methods in the Client class:
omain method
odisplayMainMenu method
oother applicable methods
Note that the object to be instantiated in the main method is an object array.
For example: SavingsAccount sa new SavingsAccount;
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
New Account
Balance Inquiry
Deposit
Withdraw
Client Profile
Close Account
Exit
The New Account option should implement the following:
oInput client details: name, address, birthday, and contact number
oInput the initial deposit of not less than PhP
oGenerate a fourdigit account number randomly
The Balance Inquiry option should implement the following:
oInput the account number and validate
oIf the account number is valid, display the client name and current balance
The Deposit option should implement the following:
oInput the account number and validate
oIf the account number is valid, input the amount of deposit of not less than Php
oCompute and update the current balance as follows:
Balanceamount of deposit
Interest of balance
Balanceinterest
The Withdraw option should implement the following:
oInput the account number and validate
oIf the account number is valid, input the amount to be withdrawn, not less than Php not greater than the balance, and an amount of Php should be maintained maintaining balance
oCompute and update the balance as follows:
Balanceamount withdrawn
The Client Profile option should implement the following:
oInput the account number and validate
oIf account number is valid, display the client details including the current balance.
The Close Account option should implement the following:
oInput the account number and validate
oIf account number is valid, confirm if the user closes the account then set the balance to zero
oOtherwise, go back to the main menu
The Exit option terminates the program.
The following Main Menu validations should be implemented:
oValidate the transaction code by the user
oThe user should not be allowed to perform transactions to unless a new account has been created
oApply all input validations.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started