Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

felician.brightspace.com/d2)/lms/quizzing/user/attempt/quiz start frame.d217ou 1

ID: 3732756 • Letter: F

Question

felician.brightspace.com/d2)/lms/quizzing/user/attempt/quiz start frame.d217ou 152018ispry-8 HC Programming Logic and Design (15201) es Classlist Content Discussions ActivitiesClass Progress Links ne Taken:0:20:35 Brady Fernandez: Attempt 1 Save Question 2 (5 points) Design a case structure that tests the month variable and does the following 1. if the month variable is set to 1, it displays "January has 31 days" 2. if the month variaNe is set to 2, it displays "February has 28 days" 3. if the month variable is set to 3, it displays "March has 31 days' 4. if the month variable is set to anything else, it displays "Invalid selection" switch (month) case 1: "January has 31 days." break case 2 February has 28 days." break; case 3: om

Explanation / Answer

Question 2:-->

switch(month)
{
case 1:
"January has 31 days."
break;
case 2:
"february has 28 days."
break;
case 3:
"March has 31 days."
break;
default:
"Invalid Selection"
break;
}

Question--> What values can you store in a boolean variable?

Answer:--> you can store True/False into boolean variable.

Question (11)-->

(a) The name of the function is doSomething.
(b) This function returns Integer type.
(c) doSomthing(10)
will return 10 *2 = 20
So it displays 20.