Question: 10.) Write a function called sooner_date that has 4 integer parameters. The first is a number between 1 and 12 (inclusive) that represents a

10.) Write a function called sooner_date that has 4 integer parameters. The first is a number between 1 and

10.) Write a function called sooner_date that has 4 integer parameters. The first is a number between 1 and 12 (inclusive) that represents a month. 1 is January, 2 is February, etc. The second is a number between 1 and 31 (inclusive) that represents a day. The third parameter is another integer representing a month and the fourth is another integer parameter representing a day. So essentially you have 2 dates (the first 2 parameters and the second 2 parameters). Figure out which date would come sooner, then print out that date in the format month / day. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): sooner_date (1, 1, 1, 2). 1/1 sooner_date (2, 5, 1, 3) 1/3 sooner date (8, 25, 7, 30) 7 / 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This means that the first date January 1 would come s... View full answer

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 Programming Questions!