1. Engineering
  2. Computer Science
  3. ooo rogers 1057 lab 3 bank system requ 1 uml...

Question: ooo rogers 1057 lab 3 bank system requ 1 uml...

Question details

..ooo ROGERS令 10:57 Lab 3- Bank System Requ 1. UML at the end of these requirements b. The getName method should return the firstName concatenated with the lastName (with a space in between). The getEmail and getPhoneNum methods should be implemented as simple, straight- forward getter methods c. 2. Account Class a. Follow the UML at the end of these requirements b. Import the java.util.Random class. C. The constructor should receive a Client object and an opening balance amount to initialize these properties. d. The accountNum property should be initialized using the Random.nextiongl method. e. Implement getter methods for each property. f. Create a getName method which will call the getName method of the client, and retur the resulting value. & The deposit method should add the specified amount to the balance. h. The withdraw method should verify that the amount requested is available (less tharn the balance), and if so withdraw the amount and return true. Otherwise, the method should return false. i. Note: The withdraw method has no output statements 3. Bank Class a. The constructor should: i, instantiate and initialize the Scanner property i. prompt the user for the bank name, and initialize the property ii. prompt the user for the number of accounts, and initialize the array BONUS MARK: verify that the input is a valid integer value v. Loop through the length of the array 1. Prompt for and input client first name, last name, phone number, and email address. 2. BONUS MARK: validate email address 3. Create a new Client object with this information 4. Prompt for and input an opening balance. 5. Create a new Account with the client and balance 6. Add the new account to the array of accounts b. The printAccounts method should loop through all accounts in the array and print all the details of that account in a single row of output. Use DecimalFormat to format the output of the balance The main method should: C. i. Declare and instantiate a new Bank object ii. Use a loop and switch statement to process user input with the following options: 1. P or p: call printAccounts 2. W or w

..ooo ROGERS 11:00 56%) Lab 3 - Bank System options n-intAccounts 3 of 4 a. b. c. d. e. prompt for the index of the account prompt for amount to withdraw call withdraw method of specified account if false, output Insufficient Funds! Balance is $<balance>. Use DecimalFormat to format the balance 3. D or d: a. b. c. Prompt for the index of the account Prompt for the amount to deposit Call deposit method of the specified account 4. Q or q: Quit program Do NOT use System.exit)! a. b. ents lder named CST8132_LastName_FirstName_Lab3. Account.java and Client.java in the folder created in Step 1 eated in Step 1 and name the resulting archive file me_FirstName Lab3.zip ick on the project folder e Send To... context menu and select Compressed (zipped) folder ile to Brightspace as: CST8132 LastName FirstName Lab3.zip 32_Giddings_Angela Lab3.zip ect (only 1 ZIP file uploaded, containing 2 java files, and named correctly)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution