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

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!