FRQ: Student Record
Student Scores
Improved
Final Average
public class StudentRecord {
private int[] scores;
public StudentRecord() {
}
//return the average of the values in scores whose indexes are between first and last
//precondition: 0<=first<=last<scores.length
public double average(int first, int last) {
}
//return true if each successive value in scores is greater than or equal to the previous value;
//otherwise, return false;
public boolean hasImproved() {
}
public double finalAverage() {
}
}
Instruction
Return
Explanation
Last updated