Question: java 4. (Gane; ATM machine) Use the ficcunt dass created in fxerose 2 to simulate an ATM machine. Create ten accounts in an array wish

4. (Gane; ATM machine) Use the ficcunt dass created in fxerose 2 to simulate an ATM machine. Create ten accounts in an array wish id 0,f co, and inlitil balance 5100 . The system prompts the iser to enter an id, it the lid is eneered intcorrectly, ask the user to enter a cotrect id. Once an id in accepted, the muln menu is displayed as shown in the tample rurt. Yeu can enter a choice I for Mewing the current balance. 2 for withdrawing morey, 3 for depositing money. and a for exiting the main menu. Onre you exit, she sptem will promut for anid again. Thus, once the trutem starts, if will not stop Enter an ids 4 Man treno 11 check balance 27 withdew 3i deposit 4t exit Efter. a cholca: 1 The balance is 100.0 Mxin metia 11 check, Ealanise 2i. withdran 3t aeposit Af exit Finter a choicei ? Einter an asount to withdrawi. Main renu 14 check balance 24. wifthdirat di deposit. 4. ent Enter a chpice: tw The balance is 97,0 Main evere 11. eheck baiafce z: witharaw 3. dejasit. 4: x Enter a chaices 1 Snter an ascunt to depostet io ritw Mals wenu Is check ba tance 7i aftharam 3) deposit. 49 exte Coter a cheices 1 The balance is 100,0 Mant werin 11 check. balanem 2. wietudrie 3tiferosit A) ixit choical a lie. inter an itt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
