Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions