Question: BankDriver class: This class contains the main method, and will display the menu of op ons in a loop un l the user chooses to

BankDriver class: This class contains the main method, and will display the menu of opons
in a loop unl the user chooses to quit. For each menu opon, there should be a method to
complete the task. Your main class should be minimalisc, and only include the tasks for the
menu loop and closing tasks.
Global variables:
Scanner object
A Customer array that holds 20 customers.
Stac methods:
createNewCustomer- This method will get the customers full name and social security
number. Since customer name is stored as first and last name, you will need to substring
it down into the first and last name. Create a Customer object and store that object into
the Customer array and increase the array size. Since the only input here are Strings, no
data validaon is necessary. However, you must enter the users full name correctly.
createAccount- This method gets the customer ID and deposit amount, as well as the
account type. It should then search the Customer array for the correct customer ID and
call the addAccount method in Customer and store it in the array at the appropriate
index, based on the customer ID. Validate customer ID for type and range. Validate
deposit amount and account type for data type.
deposit- This method will get the account number of the customer and the deposit
amount. It will then search the Customer array for a matching ID Number. If a match,
then it will search the accounts array and for each account, it will:
o retrieve the account number
o Output the account number and ask if it is the correct account.
o If the user says yes then call the deposit method from the account class for that
customer
o Validate customer ID for type and range. Validate deposit amount for type.
withdraw- Do the same for withdraw as you did for deposit except call the withdraw
method form the account class for that customer. Validate customer ID for type and
range. Validate withdraw amount for type.
createCD- This method will create a CD for the correct customer based on customer ID.
This method will prompt the user for the customer ID and deposit amount. It will then
search the Customer array for the correct customer based on customer ID. If it locates
the correct customer, it will concatenate the first and last name to combine into the CD
name field. It will then determine the duraon of the CD and from that duraon, it will
set the duraon, just as you did in the last program. It will then create a CD from the
informaon provided and call the addCD method from the CD class and store it in the CD
for the correct customer. Validate customer ID number and duraon choices for type
and range. Validate amount for type.
displayCustomerInformaon- This method will retrieve the customer ID from the user. It
will search the Customer array for the correct customer and output the details, using the
toString method from Customer. Validate customer ID for type and range.
displayMenu- This method displays the menu, accepts and returns the validated input.
The users choice must be validated for type and range.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!