Page 1 of 1

Your code will be compiled as C++14, make sure you use appropriate syntax. Different months of the year have different n

Posted: Thu Jul 14, 2022 2:10 pm
by answerhappygod
Your Code Will Be Compiled As C 14 Make Sure You Use Appropriate Syntax Different Months Of The Year Have Different N 1
Your Code Will Be Compiled As C 14 Make Sure You Use Appropriate Syntax Different Months Of The Year Have Different N 1 (119.46 KiB) Viewed 31 times
Your code will be compiled as C++14, make sure you use appropriate syntax. Different months of the year have different numbers of days. - 31 days = January, March, May, July, August, October, December - 30 days = April, June, September, November - 28 days = February (ignore leap years) Declare a function called month_days in the file month_days.h. - month_days takes a single argument. - The argument is an integer representing a month. January is month 1 . December is month 12 . - month_days should return an integer representing the correct value for a given piece. - Any invalid inputs should return −1. For example: - should return 31 - should return 28 - should return -1