Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This assignment, you are going to write a program that simulates the user login.

ID: 3537728 • Letter: T

Question

This assignment, you are going to write a program that simulates the user login. In your program, there should be only one user record. You should declare integer variables userID and password. Please initialize these variables in your program when you declare them. The value of userID should be the last 6 digits of your people soft ID. If the last 6 digits start with 0 (e.g., 012345), please replace 0 with 1 (e.g., 112345). You can select any 4-digit number as your password. Users can try to login at most 3 times. After the 3rd unsuccessful attempt, the program warns the user and then exits without doing anything.

If the user ID and the password are correct, the program will prompt that the login is successful and the user needs to change the password. The new password should be a 4-digit number and different from the current password. We will explain later what happens if the user ID or password is not correct.

If the new password is a 4-digit number and different from the previous password, the program will prompt that the password is changed, and then exits.

Please notice that the user can try to login at most 3 times. After each failed attempt, the program should inform the user how many more times s/he can try

After the 3rd unsuccessful attempt, the program warns the user and then exits without doing anything.

Explanation / Answer

Can be done but it is too time taking and no body ll do it for 750 points for sure. Let me know if we can do this for 3000 points

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote