Answer:
The statement that assigns the sum of numNickels and numDimes to numCoins is as follows:-
numCoins = numNickels + numDimes;
System.out.print("There are ");System.out.print(numCoins);System.out.println(" coins");
numNickels = 9;
numDimes = 0;
numCoins = numNickels + numDimes;
System.out.print("There are ");System.out.print(numCoins);System.out.println(" coins");
Explanation:
The first statement in the solution adds the values of numNickels (6) and numDimes (11) ,the rrsult is then saved in numCoins variable
The next line prints the value of numCoins (17) alongside some strings
The next line assigns 9 to numNickels
The next line assigns 0 to numDimes
The next line adds the values of numNickels (9) and numDimes (0) ,the result is then saved in numCoins variable
The next line prints the value of numCoins (9) alongside some strings