Question: hello Don't use your handwriting please the answer in java language Question Four Write a program where you read the user name, then ask the
hello
Don't use your handwriting please
the answer in java language

Question Four Write a program where you read the user name, then ask the user "Do you want to register in the class (Yes/No)?". Read the user input and make an if statement's to check the user's input: i. If the user inputs yes ii. If the user inputs no ii. If the user did not enter yes or no *Print You have registered successiully Print "registration is canceled." * Print "invalid input. Please enter Yes or No" * Keep in mind that when your program is checking the user input, letter case should be ignored (i.e. YES, yes, Yes, yEs, yeS... etc. all considered the same input) Besides writing down your codes in the answer, make sure you provide a screenshot of your code and the output. Any student who does not provide a screenshot shall get zero mark for this question. These are a screenshots of the same program with different inputs Please enter your nane ushra Aloulayyin output 1 Do you want to register in the class (Yes/No) 2no Bushra Alsulayyin, your registration is canceled Please enter your nane Bushra nchasmed Do you vant to register in the class (Yes/No) 2YES output 2 Bushra mohanned, You have registered successfully
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
