Question: Which XXX completes the following code? import java.util.Scanner; public class GuessMyAge { public static void myGuess ( int low, int high, Scanner scnr ) {
Which XXX completes the following code?
import java.util.Scanner;
public class GuessMyAge
public static void myGuessint low, int high, Scanner scnr
int mid;
char userAnswer;
mid low high;
System.out.printIs it mid : ;
userAnswer scnrnextcharAt;
if userAnswer && userAnswer
System.out.printlnGreat;
else
if userAnswer
XXX
else
myGuesslow mid, scnr;
public static void mainString args
Scanner scnr new ScannerSystemin;
myGuess scnr;
a
myGuessmid high, scnr;
b
myGuesslow mid, scnr;
c
myGuess mid high, scnr;
d
myGuess low high, scnr ;
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
