Integer Division in Boolean Expressions
Consider the following meetsThreshold method.
public static boolean meetsThreshold(int total, int count, double threshold) {
return total / count >= threshold;
}
Which of the following method calls returns true?
A
meetsThreshold(19, 6, 3.2)
B
meetsThreshold(23, 7, 3.3)
C
meetsThreshold(17, 5, 3.0)
D
meetsThreshold(17, 5, 3.5)
Question Leaderboard
Not enough data yet to show leaderboard.
APFIVE