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

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

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!