Question: Write a python program that asks the user for a day and month of the year. Your program should output what day in the year

 Write a python program that asks the user for a day

Write a python program that asks the user for a day and month of the year. Your program should output what day in the year it is, January 1st being day 1 and December 31st being day 365. Note: assume no leap years. [25 marks] Month 1 2 3 5 6 7 8 9 10 | 11 | 12 Days 31 28 31 30 31 | 30 | 31 | 31 | 30 31 30 31 Sample input: Month: 6 Day: 10 Sample output: That's day 161 of the year

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!