Question: Using python Birthday Calculator Create a program that accepts a name and a birth date and displays the person's birthday, the current day, the person's
Using python
Birthday Calculator
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 MMDDYY:
Birthday: Sunday, February
Today: Thursday, March
Joel is years old.
Joel's birthday is in days.
Continue? yn: y
Enter name: Mary
Enter birthday MMDDYY:
Birthday: Sunday, April
Today: Thursday, March
Mary is years old.
Mary's birthday is in days.
Continue? yn: y
Enter name: Mike
Enter birthday MMDDYY:
Birthday: Tuesday, March
Today: Thursday, March
Mike is years old.
Mike's birthday is today!
Continue? yn: n
Specifications
Allow the user to enter a date in the MMDDYY format. Adjust the date so 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 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 until the person's
birthday, you can use the following format for a person with a name of Jon:
today Jon's birthday is today!
tomorrow Jon's birthday is tomorrow!
yesterday Jon's birthday was yesterday!
other days Jon's birthday is in X days.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
