Given two arrays, studentNames
that maintains a list of student names, and studentScores
that has a list of the scores for each student, which XXX
and YYY
prints out only the student names whose score is above 80? Choices are in the form XXX / YYY
.
String[] studentNames = new String[NUM_STUDENTS];
int[] studentScores = new int[NUM_STUDENTS];
for (int i = 0; i < NUM_STUDENTS; i++) {
if (XXX > 80) {
System.out.print(YYY + " ");
}
}