Given a int variable named yesCount and another int variable named noCount and an int variable named response that stores an input, write the necessary code to carry out the following: if the value typed in is a 1 or a 2 then increment yesCount and assign \"YES WAS RECORDED\" to state variable. if the value typed in is a 3 or an 4 then increment noCount and assign \"NO WAS RECORDED\" to state variable. otherwise leave yesCount and noCount as they are and assign \"INVALID\" to state variable. ------------- import java.util.Scanner; class switchdemo{ public static void main(String arg[]){ int response=0; String state=\"\"; int yesCount=0,noCount=0; Scanner scanner =new Scanner(System.in); System.out.println(\"Enter the number:\"); response=scanner.nextInt(); System.out.println(\"Enter initial yesCount:\"); yesCount=scanner.nextInt(); System.out.println(\"Enter initial noCount:\"); noCount=scanner.nextInt(); switch(response){ ///{ //write your code here //start //end ///} }//switch System.out.println(\"State:\"+state); System.out.println(\"yesCount after switch:\"+yesCount); System.out.println(\"noCount after switch:\"+noCount); } } Solution import java.util.Scanner; class switchdemo { public static void main(String arg[]) { int response = 0; String state = \"\"; int yesCount = 0, noCount = 0; Scanner scanner = new Scanner(System.in); System.out.println(\"Enter the number:\"); response = scanner.nextInt(); System.out.println(\"Enter initial yesCount:\"); yesCount = scanner.nextInt(); System.out.println(\"Enter initial noCount:\"); noCount = scanner.nextInt(); switch (response) { case 1: yesCount++; state = \"YES WAS RECORDED\"; break; case 2: yesCount++; state = \"YES WAS RECORDED\"; break; case 3: noCount++; state = \"NO WAS RECORDED\"; break; case 4: noCount++; state = \"NO WAS RECORDED\"; break; default: state = \"INVALID\"; }//switch ends System.out.println(\"State:\" + state); System.out.println(\"yesCount after switch:\" + yesCount); System.out.println(\"noCount after switch:\" + noCount); } } .