Question: 2.38 LAB: Fun With Names For this exercise, complete the code below so that it can take a name in First Last format and print

 2.38 LAB: Fun With Names For this exercise, complete the code

2.38 LAB: Fun With Names For this exercise, complete the code below so that it can take a name in First Last format and print the name out in Last, First format. Your code should be able to do the following note that the names in BOLD are entered by the user in the terminal window: Enter a name: Charlie Brown Brown, Charlie A second run of your code with different inputs might look like this: Enter a name: Jon Arbuckle Arbuckle, Jon Note that the code below already reads the input from the user - your job is to separate the names. Look at the notes from the String lecture for methods that you need to use for this problem. You must assume for this problem that the user enters the name in the right format (with a space separating the first and last names), and note that you must end with an end-of-line as with all of our project/lab output so make sure you use printin rather than print for that last line. 285300.1760016

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