Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 successfullyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started