Java


Java Coding

Instructions:

Your online bank account has 2 levels of security: question and password.

You have 3 attempts to answer the question, and 2 attempts to enter the password.

Use a do/while and a for loop to control the entries. One will be embedded in the other.

One looping structure is better suited than the other as the outside loop.

Don't forget to exit the main(). You don't need to print the double quotes in the messages.

Look at the sample output for prompt and spacing requirements.

Print "Invalid answer! 9 more attempts." where the 9 represents the number of attempts left for an invalid answer to the question.

Print "Invalid password! 9 attempts left." when the password is entered incorrectly and where the 9 represents the number of attempts left.

Print "Trinity Bank & Trust - Account Management for Xxxxxxxxx" is displayed when all the codes are entered properly. The Xs represent yourname.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Java
Reference No:- TGS01058778

Expected delivery within 24 Hours