Question: 2 5 . 1 9 PRACTICE: Branches * * : Next date LAB ACTIVITY 2 5 . 1 9 . 1 : PRACTICE: Branches *
PRACTICE: Branches: Next date
LAB ACTIVITY
: PRACTICE: Branches: Next date
Many websites let users make reservations hotel car, flights, etc. When a user selects a date, the next day is often automatically selected for hotel checkout, car return, flight return, etc. Given a date in the form of three integers, output the next date. If the input is the output should be If the input is the output should be Ignore leap years.
Hints:
Group the months based on number of days. Then create an ifelse statement for each case.
Note that December is a special case; after the last day, the next month is January and is the next year.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
