Question: Write a program in Python that asks for the user for the last name, the first name, and SSN. The program will display the users

Write a program in Python that asks for the user for the last name, the first name, and SSN. The program will display the user’s initial which is the first character of first name and the first character last name. It will also generate the user’s email address as first character of first name and the last name with the email address. Also, it will display the last 4 digits of the SSN. 

Note: The Project must use functions. The following functions need to be used in your project. If you like add more functions, it will be great.

• getStringData() – a function that will validate the user’s entry of a non-empty string 

• main() 

• displayResult() – will display the required output 

SAMPLE RUN (User entry is in italics): 

Lottery Commissioner’s Entry 

-------------------------------------------------------------------------------- 

Enter last name: name 

Enter first name: name

Enter SSN: xxx-xx-xxx

 -------------------------------------------------------------------------------- 

Summary: Create Identity 

-------------------------------------------------------------------------------- 

The person’s User’s initial: XX 

Email address: xxxxxx @ notrealemail . com 

Last 4-digit of SSN: XXXX

 -------------------------------------------------------------------------------- 

End of Project

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!