Question: Who can do the C++ programming codes of this topic subject? Write code that uses the ternary operator (Section 6.6 in case you need to

Write code that uses the ternary operator (Section 6.6 in case you need to review) to answer the problem. User inputs a year o If the year is a leap year then output "?? is a Leap year" where ?? Is the year entered o If the year is NOT a leap year then output "?? is not a Leap year" where ?? Is the year entered Calculate a Leap Year: Any year that is evenly divisible by 4 is a leap year: for example, 1988, 1992, and 1996 are leap years. However, there is still a small error that must be accounted for. To eliminate this error, any year that is evenly divisible by 100 (for example, 1900) is a leap year only if it is also evenly divisible by 400. Sample output Enter year: 2000 2000 is Leap year. Enter year: 2017 2017 is not a Leap year. Enter year: 1900 1900 is not a Leap year. Enter year: 2016 2016 is Leap year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
