Write a better version of the method date ok with three int


Question: Write a better version of the method date OK with three int parameters (Display4.9). This version should check for the correct number of days in each month and should not just allow 31 days in any month. It will help to define another helping method named leap Year, which takes an int argument for a year and returns true if the year is a leap year. February has 29 days in leap years and only 28 days in other years. Use the following rule for determining if the year is a leap year: A year is a leap year if it is divisible by 4 but is not divisible by 100, or if it is divisible by 400.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a better version of the method date ok with three int
Reference No:- TGS02404381

Now Priced at $15 (50% Discount)

Recommended (99%)

Rated (4.3/5)