Question: 1 4. Please implement the program according to the requirements: Input month number from user. Store it in some variable say month. There can be

 1 4. Please implement the program according to the requirements: Input

1 4. Please implement the program according to the requirements: Input month number from user. Store it in some variable say month. There can be 12 possible values (choices) of month i.e. from 1 to 12. Print 31 for the value of 1, 3, 5, 7, 8, 10, 12. Print 30 for he value of 4, 6, 9, 11. Print 28/29 for he value of 2. Print "invalid input" for the value out of the range of [1,12]. The execution of the program may look like the following: Please input a month number: 2 28/29 Process exited after 2.363 seconds with return value o

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!