Question: python Problem 6 Write a few lines of code that: Part A: Parsing the user input 1. Ask user to input a date of birth

 python Problem 6 Write a few lines of code that: Part
python

Problem 6 Write a few lines of code that: Part A: Parsing the user input 1. Ask user to input a date of birth 2. Ask user to input today's date 3. Display the date of birth and today's date in the mm/dd/yyyy format Hint: use divide, div and modulo Example Output: Please enter a date of birth: 19951117 Please enter today's date: 20170901 Date of birth is 11/17/1995 Today's date is 09/01/2017 Part B: Calculating the user's age in years, months and days. 1. Using the years, months and days from Part A, calculate the user's age in years, months and days 2. You can assume that month is always 30 days Example Output: You have been alive for 21 years 9 months 19 days Problem 6 Write a few lines of code that: Part A: Parsing the user input 1. Ask user to input a date of birth 2. Ask user to input today's date 3. Display the date of birth and today's date in the mm/dd/yyyy format Hint: use divide, div and modulo Example Output: Please enter a date of birth: 19951117 Please enter today's date: 20170901 Date of birth is 11/17/1995 Today's date is 09/01/2017 Part B: Calculating the user's age in years, months and days. 1. Using the years, months and days from Part A, calculate the user's age in years, months and days 2. You can assume that month is always 30 days Example Output: You have been alive for 21 years 9 months 19 days

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!