Question: Create a Scanner variable for console input. Create String variables for first, middle, and last names. Prompt the user for each name and input it

Create a Scanner variable for console input.
Create String variables for first, middle, and last names.
Prompt the user for each name and input it into the String variable for that name.
No matter how the user capitalizes the names, output the name with the first name in all lowercase letters, the first character of the middle name in uppercase, followed by a period, and the last name in all uppercase letters.
Example run
What is your first name? George
What is your middle name? xavier
What is your last name? Smith
Your name is george X. SMITH

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 Programming Questions!