complete the lap questions

Q1:

//1 runs 7 times

//2 runs 3 times

//3 infinite loop

// 4 logical error 10 is not <10

// 5 runs 9 times

// 6 runs 60 times for the * and 12 for #

——————————————————————–

please see the attachment and please provide comments for each step.

Lab1 – seasons :

import java.util.Scanner;
package lab1;

public class Lab1 {
class lab1{
Scanner sc = new Scanner(System.in);
systemt.out.printl(” Please enter the date and the month”);
int i = sc.nextInt();
int day, month;
switch(month)
case 12:
if (day<15 );{
System.out.print(“It is fall season”);
break;
}
else
case 1:
case 2:
case 3:{
System.out.print (“it is winter season “);
break;
}
if (day <15 ) {
case 4:
case 5:
case 6: {
System.out.print (” it is spring season “);
break;
}
if ( day < 15){

Case 7:
Case 8:
Case 9: {
System.out.print (“it is summer season “);
Break;
}
If (day <15)
{
Case 10:
Case 11:
System.out.print (“it is fall season “);
Break;
}

"Is this question part of your assignment? We can help"

ORDER NOW