Question: please help Overview Create a program that will format a person's name and birthdate. Objective Use critical thinking skills, string methods, and branching to manipulate

please help Overview Create a program that will format a person's nameand birthdate. Objective Use critical thinking skills, string methods, and branching toplease help

Overview Create a program that will format a person's name and birthdate. Objective Use critical thinking skills, string methods, and branching to manipulate strings. Description Data can be stored in one format, and then displayed in another format as needed by the application using that data. In this lab, you will write a program that formats a user's name, and birthday according to a subset of rules described below. Please review the rule sets and examples below before writing your program. Your program should format a name as follows: - If the input is firstName middleName lastName then the output is lastName, firstName middlelnitial. - If the input has the form firstName lastName then the output is lastName, firstName - It will always be the case that the input will have either 1 middle name or no middle name (ie, Julia Ann Marie Clark will not appear) Your program should format a birthdate as follows: - The input can be expected in the form month, day, year, and should always display the birthdate with four digits for the year, two digits for the month, and two digits for the day, with the dash character appearing between each number (i.e., "YYYY-MM-DD) - It will always be the case that the 3 components of month, day, and year will appear in the input. Your program will display both components as one string that is formatted using the following rules: - Note that the name and birthdate will be input all together in one line (and thus with a single input statement) - The data should be output in a single line of 36 total characters. - The first 24 characters should show the formatted name left-aligned - The next 12 characters should show the birthdate right-aligned Ex: If the input is: Enter a name and birthdate: Jane Marie Doe 1231997 the output is: Doe, Jane M. 1997-12-03 Ex: If the input is: Enter a name and birthdate: Julia Clark 1152001 the output is: Clark, Julia 2001-01-15 Hint: Use techniques from section 5.3 and 5.4 to determine how many names there are, and an easy way to manipulate them. Note: This Lab contains hidden test cases. This means that there are some test cases where zyBooks will not show you what it is inputting. nor where your output may be wrong. But if you do the visible test cases properly, you should also pass all of the hidden test cases. 1 user_input = input("Enter a name and birthdate: (n) 2 Type your code here

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 Databases Questions!