Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that accepts a name and a birth date and displays the person's birthday, the current day, the person's age, and the

Create a program that accepts a name and a birth date and displays the person's birthday, the current day, the person's age, and the number of days until the person's next birthday. Console Birthday Calculator Enter name: Joel Enter birthday (MM/DD/YY) : 2/4/68 Birthday: Sunday, February 04, 1968 Today: Joel is 48 years old. Joel's birthday is in 73 days. Tuesday, November 22, 2016 Continue? (y/n): y Enter name: Django Enter birthday (MM/DD/YY) : 12/1/07 Birthday: Saturday, December 01, 2007 Today: Django is 8 years old. Django's birthday is in 9 days. Tuesday, November 22, 2016 Continue? (y/n): y Enter name: Mike Enter birthday (MM/DD/YY): 11/22/86 Birthday: Saturday, November 22, 1986 Today: Mike is 30 years old. Mike's birthday is today! Tuesday, November 22, 2016 Continue? (y/n): n Specifications Allow the user to enter a date in the MM/DD/YY format. Adjust the date so that it is correct even if the birth year is later than the current year. When you calculate the person's age, don't take leap year into account. If the person is more than 2 years old, display the person's age in years. Otherwise, display the person's age in days. When you display the message that indicates the number of days to the person's birthday, you can use the following format for a person with a name of John: John's birthday is today! John's birthday is tomorrow! John's birthday was yesterday! John's birthday is in X days. today tomorrow yesterday other days

Step by Step Solution

3.52 Rating (166 Votes )

There are 3 Steps involved in it

Step: 1

from datetime import date l312831303130313130313031 def displaydirthadywishesnam... 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

Microsoft Visual C# An Introduction to Object-Oriented Programming

Authors: Joyce Farrell

7th edition

978-1337102100

More Books

Students also viewed these Algorithms questions

Question

Explain the difference between order qualifiers and order winners.

Answered: 1 week ago