Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding Problem 8 (External resource) (4.0 points possible Happy Birthday.py 1 current_day = 31 2 current_month = 5 3 current year = 2018 4 birth_day

image text in transcribed
Coding Problem 8 (External resource) (4.0 points possible Happy Birthday.py 1 current_day = 31 2 current_month = 5 3 current year = 2018 4 birth_day 19 5 birth_month = 12 6 birth_year = 1990 7 8 #You may modify the lines of code above, but don't move them! 9 #When you Submit your code, we'll change these lines to 10 #assign different values to the variables. 11 12 #Given the current date and birth date held by the variables 13 #above, calculate and print this person's current age. Note 14 #that if their birth date has not yet passed this year, your 15 #result would be one less than if it has. 16 # 17 #For example, with the variables given above, the person 18 #would turn 28 on December 12th, 2018. So, as of May 31st, 19 #2018, they are 27. 20 21 22 #Add your code here! 23 24 25 tin

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

about using Labels and Value Labels to make the output clearer.

Answered: 1 week ago