Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Cj Castro
Added: May 13, 2021 12:12 AM
Views: 507
  1.  
  2.     /**
  3.      * Prints the student's final grades for each registered course
  4.      * @return the final grades of the student
  5.      */
  6.     public String printFinalGrade() {
  7.         String str = "";
  8.         for (Course regCourse : regCourses) {
  9.             str += String.format("%-10s : %s\n", regCourse.getCourseName(),
  10.                     retrieveCourseFinalGrade(regCourse));
  11.         }
  12.         return str;
  13.     }
  14.