Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Requirements: The ATM system will require users to enter a valid ID . If the entered ID matches to one of the Accounts ID,

Java

Requirements: The ATM system will require users to enter a valid ID . If the entered ID matches to one of the Accounts ID, the system will present the user an ATM menu. The ATM menu asks the user to enter a choice, and depending on the users choice it may ask for additional input (i.e., withdraw or deposit amount). The code should show for each user choice as shown in the sample-run figure at the end. Description of the sample-run figure (shown at the end): In the main method, create an Array of ten accounts with account IDs as 1, . . . , 10, and an initial balance of $100 for each account. You will use this Array to simulate an ATM machine experience in the main method. To do that, you need a Scanner to capture the users input and define a few variables. You should also define a few methods in the main class, to be used inside the main method, to make the main method looks lean. Additional simulation requirements: After creating the 10-element array, the system should prompt the user to enter an ID and it will verify if the ID is a valid one. An ID is valid if it matches to one of the accounts of the 10-element Array. If the ID is valid, the ATM menu is displayed; otherwise the system will ask the user to enter a correct ID. That is, the system will not present the ATM main menu until the user enters a correct ID. Based on the above ATM simulation description, once the system starts it will not stop because after a user chooses option 4 to exit the ATM system will ask user to enter an ID again. To give users an option exiting the system after a few rounds of ATM simulation, inform users that when entering an ID, enter 0 to exit the ATM run (since valid ids are from 1 to 10). That is, if users enter 0 as ID, instead of showing the menu, the system will terminate the project, but before that it will print out every ATM transactions for each account in the Array that actually incurred transactions.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions