The program asks the user to enter a name and password. If the name is Ahmed with a password of 2321 or the name is Ali with a password of 6776, it will display "Hi ..Welcome to my program". Otherwise, it will show "Sorry!! I dont recognize you".
Trauma-Informed Leadership - Five Practical Principles
Create a Java program to ask a user to enter a name and pass.pdf
1. Create a Java program to ask a user to enter a name and password as shown below:
name is Ahmed and her password is 2321 or name is Ali and her password is 6776. The program
shows a greeting Hi ..Welcome to my program if the user is Ahmed Or Ali otherwise it will show a
message Sorry!! I dont recognize you (Hint: Use nested if).