Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

Students also viewed these Databases questions

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago