Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python Assignment You shall write a Python program that reads four lines from standard input: 1. A person's first name 2. A person's middle
in python
Assignment You shall write a Python program that reads four lines from standard input: 1. A person's first name 2. A person's middle name (o primer apellido, si es un nombre espaol) 3. A person's last name (o segundo apellido, si es un nombre espaol) 4. A person's pre-1998 Nevada driver license number The program shall then print three lines to standard output, namely: 1. The person's full name, formatted as follows. Ensure that the first letter of each name component is capitalized, and the remaining letters are lowercase, i.e.: Lastname, Firstname Mido 2. The person's full Social Security number, with standard hyphenation, i.e.: XXX-XX-XXXX 3. The person's age in years as an integer value), comparing their birth date to the current date, and assuming they were born on the first of January Sample Executable The command cs12p_nvdl demonstrates the expected behavior of your program given valid input. Feel free to test it (and your own program), e.g.: demostudent@jeff:$ cs12p_nvd Mark Wiley Blackburn 371396040355 Blackburn, Mark Wiley 556-98-0201 66 For quick testing (avoiding too much redundant typing!), consider using something like the following ANSI-C quoted here string as input to your program: demostudent@jeff:-$ cs12p_nvo Blackburn, Mark Wiley 556-98-0201 66 Assignment You shall write a Python program that reads four lines from standard input: 1. A person's first name 2. A person's middle name (o primer apellido, si es un nombre espaol) 3. A person's last name (o segundo apellido, si es un nombre espaol) 4. A person's pre-1998 Nevada driver license number The program shall then print three lines to standard output, namely: 1. The person's full name, formatted as follows. Ensure that the first letter of each name component is capitalized, and the remaining letters are lowercase, i.e.: Lastname, Firstname Mido 2. The person's full Social Security number, with standard hyphenation, i.e.: XXX-XX-XXXX 3. The person's age in years as an integer value), comparing their birth date to the current date, and assuming they were born on the first of January Sample Executable The command cs12p_nvdl demonstrates the expected behavior of your program given valid input. Feel free to test it (and your own program), e.g.: demostudent@jeff:$ cs12p_nvd Mark Wiley Blackburn 371396040355 Blackburn, Mark Wiley 556-98-0201 66 For quick testing (avoiding too much redundant typing!), consider using something like the following ANSI-C quoted here string as input to your program: demostudent@jeff:-$ cs12p_nvo Blackburn, Mark Wiley 556-98-0201 66 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