Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

Students also viewed these Programming questions

Question

What is the increase in dBs of a noise that doubles in intensity?

Answered: 1 week ago

Question

Why was humanistic psychology referred to as a third force?

Answered: 1 week ago