Question: Develop a Python program Write an algorithm that accepts the current date (year, month, day) and a persons birthday (year, month, day) and calculates the

Develop a Python program

Write an algorithm that accepts the current date (year, month, day) and a persons birthday (year, month, day) and calculates the persons age. If it happens to be the persons birthday, the program should also print a Happy Birthday message.

Sample output:

Enter today's date as mmddyyyy : 09142018 Enter your date of birth as mmddyyyy: 02151974 You are 44 years old today!

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!