Question: 5 2 . Write a program that takes two words as input from the keyboard, representing a user ID and a password. Your program should
Write a program that takes two words as input from the keyboard, representing a user ID and a password.
Your program should do the following:
If the user ID and the password match admin and open respectively, then output Welcome
If the user ID matches admin and the password does not match open output Wrong password.
If the password matches open and the user ID does not match admin output Wrong user ID
Otherwise, output Sorry wrong ID and password.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
