Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a java program for the question below Write a java program for the question below Please don't forget to submit UML tabular format. (
Write a java program for the question below Write a java program for the question below
Please don't forget to submit UML
tabular format. please see sample run
Implement the BankAccount Class
Attributes: Define private attributes for savingAccount and checkingAccount.
Constructor: Create a constructor that initializes the attributes.
Accessor Methods: Implement getSavingAccount and getCheckingAccount
methods.
Mutator Methods: Implement setSavingAccount and setCheckingAccount
methods.
Calculate Method: Add a method getTotalBalance to calculate the total balance,
adding saving and checking accounts.
toString Method: Override the toString method to return a formatted string, display
saving, checking and total balance.
Display Method: Add a method AccountDisplay to display account details in a
tabular format.please see sample run
Test class:
In the TestBankSystemOOPHW class, you will write the main method to
demonstrate the creation and manipulation of Customer, BankEmployee, and
BankAccount objects. This class will handle user input, perform various
operations, and print a summary report.
Hard coded date for the following steps below
Create Bank Employee: Instantiate a BankEmployee object with initial values.
Create Customer: Instantiate a Customer object with initial values.
Create Bank Account: Instantiate a BankAccount object with initial values for
saving and checking accounts.
Display employee and customer information
Perform Transactions: Simulate transactions by updating the saving and checking
account balances using the get and set methods.
Add checking account balance to the saving account and get total saving
Use set method for the total saving account
Checking account balance will be zero
Deposit $ to the checking account
Set the checking account with the new balanceCIT Assignment Chapter
OOP Page
Display Updated Information: Print the updated customer and bank account
information.
Input Data for New Customer with same employee
Prompt for Customer Information: Ask the user to input the new customer's name,
email address, saving account, and checking account balances.
Create New Customer and Bank Account: Instantiate new Customer and
BankAccount objects using the userprovided data.
Display New Customer Information: Use the customerDisplay and
AccountDisplay
methods to print the new customer's information and their bank account details.
Input Data for Third Customer with New Bank Employee
Prompt for Bank Employee Information: Ask the user to input the new bank
employee's name and employee ID
Create New Bank Employee: Instantiate a new BankEmployee object using the
userprovided data.
Prompt for Customer Information: Ask the user to input the third customer's name,
email address, saving account, and checking account balances.
Create New Customer and Bank Account: Instantiate new Customer and
BankAccount objects using the userprovided data.
Display Third Customer Information: Use the employeeDisplay, customerDisplay,
and AccountDisplay methods to print the new bank employee's and the third
customer's information and their bank account details.
Print Summary Report in a tabular format
Print Summary Header: Print a header for the summary report.
Print Information for All Entries: Use the display methods to print the information
for all employees, customers, and bank accounts in a tabular format.
Use System.out.printf to ensure the output is aligned and formatted correctly.
Note: Feel free to change the balance amount
Please note: To receive a grade for this assignment, you must follow the
instructions and implement the program using multiple classes as specified.
Submissions that do not adhere to these requirements will not be graded.
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