I need help with the “RoR Gradebook 1” lab: GradeRunner.java: //(c)…
Question Answered step-by-step I need help with the “RoR Gradebook 1” lab: GradeRunner.java: //(c)… I need help with the “RoR Gradebook 1” lab: GradeRunner.java://(c) A+ Computer Science//www.apluscompsci.com//Name – public class GradesRunner{ public static void main( String args[] ) { double[] vals = {90, 85, 95.5, 77.5, 88}; Grades test = new Grades( vals ); System.out.println(test); System.out.println(“sum = ” + test.getSum()); System.out.println(“num grades = “+test.getNumGrades()); System.out.println(“low grade = “+test.getLowGrade()); System.out.println(“high grade = “+test.getHighGrade()); //add more test cases } } Grades.java://(c) A+ Computer Science//www.apluscompsci.com//Name – public class Grades{ private Grade[] grades; public Grades( double[] list ) { } public void setGrade(int pos, double grade) { } public double getSum() { return 0; } public double getLowGrade() { return 0; } public double getHighGrade() { return 0; } public int getNumGrades() { return 0; } public String toString() { return “”; } } Computer Science Engineering & Technology Java Programming CIS MISC Share QuestionEmailCopy link Comments (0)


