Menu

[Solved]Intro Java Programming Already Created 3 Classes Bankaccount Customeraddress Bankcustomer Q37184122

Intro to Java Programming

I already created 3 classes, BankAccount, CustomerAddress, andBankCustomer. I’m having trouble with my main method and userinteraction

Part-III – Main Method
Being the entry point, write code to do the following
A. Use the Scanner object to interaction with the customer
B. As you get feedback from the user and follow instructions inPart-IV, perform all
creation and initialization of the CustomerAddress, BankCustomerand BankAccount objects within the main() method
C. Based on what the user responds to your questions, any and allinteraction with
the appropriate objects to perform the requisite actions shouldalso be conducted via the main() method

Part-IV – User Interaction
1. For this assignment, you must:
(a) Create at least 2, but no more than 4 customers
(b) Each customer must have 1 address
(c) Each customer must have 1 checking and 1 saving account
(d) Initial balance for savings account created for a customer mustbe $500
(e) Initial balance for checking account created for a customermust be $100
2. Upon start of the program, display the following message:
“Welcome to Frisco Community Bank”
3. Ask the user for the first name and last name of acustomer
4. Create a customer object with this information using theappropriate
constructor
5. Create appropriate Checking and Savings account objects, withtheir starting
balances and assign to the customer’s savingsAccount andCheckingAccount
variables, in the following way
aCustomer.setCheckAccount(aCheckAccount);

Note: The account object(s) will need to be created usingBankAccountClass’s
constructor and then assigned to the account variables as shownabove using
the setter method

6. Then ask user for individual elements of this customer’saddress, such as the
unit number, street name, city, etc.
7. Create a CustomerAddress object using its constructor based onthis data and
then assign it to the address variable of this customer object,using the setter
method, in the following way:
aCustomer.setAddress(anAddress);
8. Repeat steps 3-7 above, as needed
9. After creating the minimum 2 customer and their related objects,ask the user
if another customer needs to be created, such as:
“Do you want to create any more customer(s) ? Yes(y) orNo(n)”
10. If yes, repeat steps 3-7 and ask the question again. Be sureyou do not create
any more than 4 customers, since you would have created thecustomer array
of size 4 only, as discussed in class during Assignmentreview
11. Now ask user to provide first name of the customer the userwants to work
with
12. Search customer objects for a customer whose first name matcheswith that
provided by the user. If no match, ask user to renter name
13. If name found:
(a) Asks the user for the type of account he/she wants to work withfor the
customer. Savings(s) or Checking(c)
(b) Ask for activity he/she wants to work with:
Check balance (c), Deposit (d), or Withdrawal (w).
(c) If Check Balance – Show:

– Customer Name
– Account Type
– Current Balance
(d) If Deposit, ask for deposit amount & show: (validate amountformat for
errors). After a successful deposit, show
– Customer Name
– Account Type
– Prev Balance: & New Balance
(e) If Withdrawal, ask for withdrawal amount & show: (validateamount for
errors). If insufficient funds, display error and ask to re-enterthe amount.
After a successful deposit, show
– Customer Name
– Account Type
– Prev Balance: & New Balance:
14. Ask if the user wants to quit(q) or continue(c). If continue,repeat steps 11-13

Expert Answer


Answer to Intro to Java Programming I already created 3 classes, BankAccount, CustomerAddress, and BankCustomer. I’m having troubl… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *