Question: Description This assignment simulates logging into a bank account. First you must enter your correct PIN. And then you must enter the name of your



Description This assignment simulates logging into a bank account. First you must enter your correct PIN. And then you must enter the name of your first school. You get 3 tries for each. Note that the name of your first school will consider blanks, if any are present. For example, "St. Charles" contains one blank, so what you compare it against, must also contain one blank. Use constants whenever possible. Four separate sample runs are presented next Sample Run 1 This program simulates logging into a bank account, asking certain questions for security. Attempt #1 - Enter PIN: 1234 Attempt #1 - Enter your first school: St. Charles You are logged in. Sample Run 2 This program simulates logging into a bank account, asking certain questions for security. Attempt #1 - Enter PIN: 8888 Incorrect. Attempt #2 - Enter PIN: 1234 Attempt #1 - Enter your first school: PCHS Incorrect. Attempt #2 - Enter your first school: St. Charles You are logged in. Sample Run 3 This program simulates logging into a bank account, asking certain questions for security. Attempt #1 - Enter PIN: 5555 Incorrect. Attempt #2 - Enter PIN: 7777 Incorrect. Attempt #3 - Enter PIN: 8888 Login failed. Sample Run 4 This program simulates logging into a bank account, asking certain questions for security. Attempt #1 - Enter PIN: 1234 Attempt #1 - Enter your first school: St. Charles Incorrect. Charles Attempt #2 - Enter your first school: St. Incorrect. Attempt #3 - Enter your first school: PCHS Login failed. Grading Submit your file named "Login.java" to the Dropbox in BrightSpace called A2. Out of 20 points: 8 points for documentation (include Javadoc) 8 points for correctly functioning code 4 points for EXACTLY matching output, compared to what's depicted in these slides
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
