Essay
Assertions
For the following method, identify each of the three assertions in the table below as being either ALWAYS true, NEVER true or SOMETIMES true / sometimes false at each labeled point in the code. You may abbreviate these choices as A/N/S respectively.
public static int mystery(Scanner console) {
int y = 0;
int z = 1;
int next = console.nextInt();
// Point A
while (next >= 0) {
// Point B
if (y > z) {
// Point C
z = y;
}
y++;
next = console.nextInt();
// Point D
}
// Point E
return z;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Programming<br>Write a static method named monthApart that
Q2: While Loop Simulation<br>For each call of the
Q3: Parameter Mystery<br>At the bottom of the page,
Q4: Programming<br>Write a static method named threeHeads that
Q5: If/Else Simulation<br>For each call of the method
Q6: Programming<br>Write a static method named printMultiples that