Question: 3,4 C++ Programming: Conditional Statement. For your code, please include detailed comments for everything so it is easy to understand what has been done. Please
3,4 C++ Programming: Conditional Statement. For your code, please include detailed comments for everything so it is easy to understand what has been done. Please help answer all. Thank you very much.
Question 3: Write a program that asks for a number from 1 to 12 and a year and displays the number of days and the corresponding month name using at least one decision structure "Switch". It needs to be checked whether the month number is valid or not and whether the year is a leap year. YOU don't have to check if the year is valid. A year is called a leap year if and only if one of the following conditions is true: - The year is divisible by 4 and not divisible by 100 - The year is divisible by 400. Example 1: Enter a number: 0 Enter a year: 2022 The month is invalid. Example 2: Enter a number: 3 Enter a year: 2022 The month of March has 31 days. Example 3: Enter a number: 3 Enter a year: 2024 The month of March has 31 days. This year is a leap year.
For your code, please include detailed comments for everything so it is easy to understand what has been done.
Question 4: Consider three points P1(x1,y1), P2(x2,y2) and P3(x3,y3). Write the C++ program that:
- Read the coordinates of the three points.
- Give the quadrant to which each point belongs.
- Displays SUPER TRIO if the three points are in the same quadrant, SUPER BI if only two points are in the same quadrant, otherwise the program displays SOLO SOLO SOLO.
- The coordinates will be assumed to be non-zero.
Below is the picture of quadrant for this exercise. For your code, please include detailed comments for everything so it is easy to understand what has been done.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
