Write a program to declare 2 arrays to store the 5 users’ names and their respective passwords. The program should accept a user name and a password and search for the username.
If the user name exists and the password matches for that particular user, then display the message, “Welcome ”.
If the username is not found or if the username is found but the password does not match, then display the message “Login failed”.
Sample usernames : robin, sanya, sunny, Rohit, vimal
Sample passwords : as12#dfg, AA123$sd, bv45ttt, cvn1990, kpk#12$gh
BLUE J JAVA
Answers
Answered by
0
Answer:
Wait for 5min It is very easy question.
Similar questions
Math,
5 months ago
Economy,
5 months ago
Math,
5 months ago
Math,
10 months ago
CBSE BOARD XII,
10 months ago
Social Sciences,
1 year ago