Question: Create a test plan for the followng program below. public class Exercise 0 3 _ 1 1 { public static void main ( String [
Create a test plan for the followng program below.
public class Exercise
public static void mainString args
java.util.Scanner input new java.util.ScannerSystemin;
Prompt the user to enter input
System.out.print
"Enter a month in the year eg for Jan: ;
int month input.nextInt;
System.out.printEnter a year: ;
int year input.nextInt;
int numberOfDaysInMonth ;
switch month
case :
System.out.printJanuary year;
numberOfDaysInMonth ;
break;
case :
System.out.printFebruary year;
if year year && year
numberOfDaysInMonth ;
else
numberOfDaysInMonth ;
break;
case :
System.out.printMarch year;
numberOfDaysInMonth ;
break;
case :
System.out.printApril year;
numberOfDaysInMonth ;
break;
case :
System.out.printMay year;
numberOfDaysInMonth ;
break;
case :
System.out.printJune year;
numberOfDaysInMonth ;
break;
case :
System.out.printJuly year;
numberOfDaysInMonth ;
break;
case :
System.out.printAugust year;
numberOfDaysInMonth ;
break;
case :
System.out.printSeptember year;
numberOfDaysInMonth ;
break;
case :
System.out.printOctober year;
numberOfDaysInMonth ;
break;
case :
System.out.printNovember year;
numberOfDaysInMonth ;
break;
case :
System.out.printDecember year;
numberOfDaysInMonth ;
break;
System.out.print has numberOfDaysInMonth days";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
