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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started