Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

More Books

Students also viewed these Databases questions

Question

Use Property Number 6 to find L{f(t)} if f(t) = e at u(t 1)

Answered: 1 week ago