Question: Write a Java program that asks user to enter gender, first name and last name in one string. The program should extract the gender, first

Write a Java program that asks user to enter gender, first name and last name in one string. The program should extract the gender, first and last name from the string and should print this information as per output shown below (Assume the user has only first and last name). Then program should prompt the user to enter a Social Security number in the format DDD-DD-DDDD, where D is a digit.

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 General Management Questions!