Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirement to be met: 1. collects only a single String input 2. uses at least 3 String methods 3. displays correct Just Initials output for

image text in transcribed

Requirement to be met: 1. collects only a single String input 2. uses at least 3 String methods 3. displays correct Just Initials output for all test inputs 4. displays correct Last Name First output for all test inputs 5. displays correct First and Last output for all test input

Please do not use any array and code as in Java program, thank you!

1) Just Initials: Print just the initials in upper case letters separated by periods 2) Last Name First With Middle Initial: Print the last name in lower case with the first letter capitalized, followed by a comma and the first name in in lower case with the first letter capitalized and then the middle initial capitalized followed by a period 3) First and Last Name Only. Print the just the first name followed by the last name - all names with first letter capitalized Note: Your program has to check for middle name and if the user does not have a middle name your program has to print the variations without the middle name. See the sample output below Important: You will not get points if you do not read the string as one line (Use the nextLine0 method, not the next0 method). You cannot use the Scanner class to extract different parts of the name. You have to use the methods in String class Sample Output, with user input in red Sample run 1 What are your first, middle and last names ? Ada Lovelace Initials Last Name First Lovelace, Ada First and LastAda Lovelace Sample run 2 What are your first, middle and last names ? SALLY rachel riDE Initials Last Name First Ride, Sally R First and Last : Sally Ride :S.R. R

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions

Question

What is the significance of a business succession plan?

Answered: 1 week ago