Question: Ask the user to enter three different values to represent month, day and year. Ask the user to enter another value, int days Write a
Ask the user to enter three different values to represent month, day and year.
Ask the user to enter another value, int days
Write a function called nextdayint month, int day, int year, int & int & int & ny The first parameters of this function represent a date. Use this function to determine the next day following this date. Use the passbyreference and ny parameters to store the appropriate values for the next day.
Make sure the nextday function handles leap years, as well as dates that cross month and year boundaries see interaction
Make sure that your nextday function does not have any cout and cin calls.
In main, use the value from step to display the next following days. See the sample interaction.
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
