Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to write a JAVA program that does this. I need STEP BY STEP directions not just a posted code PLEASE! 1. Read the

I need to write a JAVA program that does this. I need STEP BY STEP directions not just a posted code PLEASE!

1. Read the names, 4 digit pin numbers, and account balances of two customers into appropriate variables and display the customers information. This requires you to call three methods twice to prompt and read customer information and a fourth method to display their information.

2. Now that you have all your customers information start your ATM by accomplishing the following within an infinite loop,

a. Use a method to display a welcome screen with your bank information and prompt for and read the customer entered pin.

b. Use a nested if to match the entered pin with one of the two customers pins. If the entered pin number matches that of one of the customers, then:

i. Welcome the customer by name and display the balance.

ii. Display option to 1. DEPOSIT, 2. WITHDRAW or 3. EXIT.

iii. If option 1 is selected, then use a method to add a valid deposit amount to the customers balance

iv. If option 2 is selected, then use a method to subtract a valid withdrawal amount from the customers balance

v. If option 3 is selected, go to step a.

4. Should the entered pin number not match either of the two customers, notify the customer that the entered pin is not valid and go to step a.

5. The EXIT option must display welcome/login screen (step 2) must display 6. Should an incorrect option be entered, the user must be notified and asked to hit any key at which time the original welcome/login screen (step a) must display

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

Students also viewed these Databases questions

Question

Have there been any major changes in its strategy recently? Why?

Answered: 1 week ago

Question

Does it use a maximum of two typefaces or fonts?

Answered: 1 week ago