Question: Re-do the bellow exercise from previous lab using nested if. Create a Java program to ask a user to enter a name and password as
Re-do the bellow exercise from previous lab using nested if. Create a Java program to ask a user to enter a name and password as shown below: name is "Sara" and her password is 2321 or name is "Reem" and her password is 6776. The program shows a greeting "Hi ..Welcome to my program" if the user is "Sara" Or "Reem" otherwise it will shows a message "Sorry!! I don't recognize you" (Hint: Use nested if)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
