Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz use java Assume we have already defined a variable of type int called month such tht 1 s month s 12, where 1 corresponds

plz use java image text in transcribed
Assume we have already defined a variable of type int called month such tht 1 s month s 12, where 1 corresponds to January, 2 corresponds to February, etc. Assume February has 28 days (i.e., it's not a leap year). TASK: Print the number of days in the first month months (inclusive). EXAMPLE: If month is 2, you would print 59 because there's 31 days in January and 28 days in February, so 31 + 28 = 59. HINT: For your convenience, here is a list of months with the number of days they have: 1= January = 31 2 = February = 28 3= March= 31 4= April = 30 5= May = 31 %3D 6- June = 30 7= July = 31 8 = August = 31 9 = September = 30 10 = October = 31 11 = November - 30 12 = December = 31 Sample Input: Sample Output: 31

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago