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 your name.
- Use this Java code to test the password: if(password.equals("Bi!!y0562Fish"))
- Use this Java code to test the answer to the question: if(question.equalsIgnoreCase("Chevy Camaro"))
- Code System.exit(0) only once at the end of main().
SEE Attachment For Sample Output
11 years ago 15
Answer(1)
Purchase the answer to view it
NOT RATED
- trinity_project.rar
Bids(1)
other Questions(10)
- HCA 305 Week 2 DQ 1 ( Hospital System Quality Improvement ) ~ 2 Different Answers ~ A + Tutorial With References
- com-231
- IT10
- Case Study Needed - APA format and using problem solving model RED, more Instructions in attachment
- Assignment 2:Conducting a z-Test
- Early Trait Theory
- Accounting Help
- Discussion Questions5
- HCA 240 Entire Course
- ACC 492 Complete Course Material