Question: Write a menu driven C ++ program that prints the day number of the year, given the date in the form of month-day-year. The program
Write a menu driven C ++ program that prints the day number of the year, given the date in the form of month-day-year. The program should check for a leap year. A year is leap if it is divisible by 4 but not divisible by 100. THERES ALSO 6 function requirements listed in the photo. O Q, Search 1 of 10 -+ Automatic Zoom Write a menu driven C++ program that prints the day number of the year, given the date in the form of month-day-year. For example, if the input is 1-1-2006, then the day number is 1. If the input is 12-25-2006, the day number is 359. The program should check for a leap year. A year is leap if it is divisible by 4 but not divisible by 100. For example, 1992, and 2008 are divisible by 4 and not divisible by 400. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example , 1600 and 2000 are divisible by 400, however, 1800 is not a leap year because 1800 is not divisible by 400. Program terminates when the user type in n or N. Note : Your program must contain the following 6 functions 1. A function that returns a boolean value idicating whether or not the day 2. A function that returns a boolean value idicating whether or not the month 3. A function that returns a boolean value idicating whether or not the year 4. A function that returns a boolean value idicating whether or not the year 5. A function that returns a string value idicating the name of the month. entered is between 1 and 31. entered is between 1 and 12. entered is greator than 0 and less than or equal to current year entered is a leap year 6. A function that returns a integer value idicating actual number of day that is equivalent to day, month, and year that is entered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
