Question: Name: Ronald Gomez Project 2 Write a program to read a name in the following order with one space between them First-nane optional-Haddle-Name last-name Twthree
Name: Ronald Gomez Project 2 Write a program to read a name in the following order with one space between them First-nane optional-Haddle-Name last-name Twthree home And print them une, middle indo Last name, First name Middle Initial comme come, the Also, capitalice beginning of each word, regardless how it is entered Assume that name is entered with exactly one spate between them and make sure that comma is right after last same Ino space between them and there are single spaces between comma and first name and first rame and middle name Examples Input Output 1 Janes Frederick Olson Olson, James 2 James Frederick olson Olson, James F. 3 JAMES FREDERICK OLSON olson, James 4 JAMES OLSON Olson, James 5 James Olson Olson, a One E Ontact No Space Saving and submitting Your Project Save your project by your last name, first initial, followed by ProCOMP110. For example, if your name is Martin Lover, doing project 1, the file name would be LopezMProj2COMP110.java After competition and final test, mit your project Submit just a file Important Details Program At the top of program, use comment symbol for your came, et Your Name Il Project Print names with largele // Due Date & Hour Use comments as necessary for example, for this program you just comment before you printing your Use blanke lines between logical sections of the program Indent as needed, see the book examples Ident by two or four spaces. Be consistent Output Print your name, project number e Printablanine Print main output Print blank in Print your name and end of project No need for loop each run prints output and its Also, Ste Project Guidelines posted in Modules action in Canvas Customize your main variables Full name, last name, first name, and middle name For comple, if your name is James Vera, your choice for those variable names must be String vera // For full name string vera / For last name String James // For first name String JVM // For middle in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
