Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Provide 3 fields (int) to store the month number, the day number, and the year P

ID: 3580110 • Letter: P

Question

Provide 3 fields (int) to store the month number, the day number, and the year Provide the following methods. Default constructor - sets date to 1, 1, 1500 setDate - if parameters are not valid, set to 1, 1, 1500 Accessors for each field Mutators for each field-if parameter is not valid, do not set A method to print a date in the form mm-dd-yyy. A method to print a date with the month as a string Method to return the number of days in the month is Leap - test whether the year is a leap year Method to return the number of days passed in the year - from the current date Method to return the number of days remaining in the year - from the current date Method to calculate a new date by adding a fixed number of days to the date A method to print the calendar for the particular month (can print a calendar for any month starting January 1, 1500. Note that the day for January 1 of the year 1500 was a Monday. To calculate the first day of the month, you can add the appropriate number of days to Monday, January 1, 1500. Write a menu-driven program to test your Date class thoroughly. If the user wishes to print the calendar use the format below.

Explanation / Answer

}

To print calender for specific month

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote