Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedWrite 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Formal SQL Tuning For Oracle Databases Practical Efficiency Efficient Practice

Authors: Leonid Nossov ,Hanno Ernst ,Victor Chupis

1st Edition

3662570564, 978-3662570562

More Books

Students also viewed these Databases questions