Review the programs StringCompare and SecretWord provided with this activity. Create a project named Chap3-LoginAuthenticator, then create a program (class) named Authenticate. The program should ask the IT Manager to enter his/her username and password and then verify the credentials. Note that the username is case insensitive, but the password is case sensitive. Assume an IT Manager's username is saved in the database as ssmith and password is saved as Falcons@2023, you will create 2 String variables to store these values. Here are is the output of three individual sample runs: Enter username: SSmith Enter password: Falcons@2023 Login Authenticated... Welcome! Enter username: ssmith Enter password: Falcons@2023 Login Authenticated... Welcome! Enter username: ssmith Enter password: falcons@2023 Invalid username or password... Access denied!
Review the programs StringCompare and SecretWord provided with this activity.
Create a project named Chap3-LoginAuthenticator, then create a
Assume an IT Manager's username is saved in the
Here are is the output of three individual sample runs:
Enter username: SSmith
Enter password: Falcons@2023
Login Authenticated... Welcome!
Enter username: ssmith
Enter password: Falcons@2023
Login Authenticated... Welcome!
Enter username: ssmith
Enter password: falcons@2023
Invalid username or password... Access denied!
Given
WE have given an IT Manager's username is saved in the database as ssmith and password is saved as Falcons@2023
we have to Create a project named Chap3-LoginAuthenticator, then create a program (class) named Authenticate. The program should ask the IT Manager to enter his/her username and password and then verify the credentials. Note that the username is case insensitive, but the password is case sensitive.
Step by step
Solved in 2 steps