Question: Please use GOLANG Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3 entries before locking

Please use GOLANG

Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3 entries before locking the account. For loginID = "admin" the password is = "Pa$$w0rd".

If the credentials are correct output: Login Successful!

If the loginID is correct but the password is incorrect, output: Incorrect!

If the loginID is incorrect but the password is correct, output: Incorrect!

For every Unsuccessful login, it must also display the attempt number of attempts left. Try again - 1 attempts left!

If the login is Unsuccessful three times, display the output: Account locked

Create a function to check the loginID and password credentials.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!