@@ -0,0 +1,2124 @@
+/*This class represents a report card with 5 courses.%0A *The grades can have disrete values from 1-10 only. */%0A%0Apublic class ReportCard%7B%0A%0A  /*Individual grades for courses*/%0A  private int mHistoryGrade;%0A  private int mPhysicsGrade;%0A  private int mMathsGrade;%0A  private int mEnglishGrade;%0A  private int mChemistryGrade;%0A%0A  /*Constructor*/%0A  public ReportCard(int historyGrade,int physicsGrade,int mathsGrade,int englishGrade,int chemistryGrade)%7B%0A    mHistoryGrade = historyGrade;%0A    mPhysicsGrade = physicsGrade;%0A    mMathsGrade = mathsGrade;%0A    mEnglishGrade = englishGrade;%0A    mChemistryGrade = chemistryGrade;%0A  %7D%0A%0A  /*Setters for the individual course grades*/%0A  public void setHistoryGrade(int historyGrade)%7B%0A    mHistoryGrade = historyGrade;%0A  %7D%0A%0A  public void setPhysicsgrade(int physicsGrade)%7B%0A    mPhysicsGrade = physicsGrade;%0A  %7D%0A%0A  public void setMathsGrade(int mathsGrade)%7B%0A    mMathsGrade = mathsGrade;%0A  %7D%0A%0A  public void setEnglishGrade(int englishGrade)%7B%0A    mEnglishGrade = englishGrade;%0A  %7D%0A%0A  public void setChemistryGrade(int chemistryGrade)%7B%0A    mChemistryGrade = chemistryGrade;%0A  %7D%0A%0A  /*Getters for the individual course grades*/%0A  public int getHistoryGrade()%7B%0A    return mHistoryGrade;%0A  %7D%0A%0A  public int getPhysicsgrade()%7B%0A    return mPhysicsGrade;%0A  %7D%0A%0A  public int getMathsGrade()%7B%0A    return mMathsGrade;%0A  %7D%0A%0A  public int getEnglishGrade()%7B%0A    return mEnglishGrade;%0A  %7D%0A%0A  public int getChemistryGrade()%7B%0A    return mChemistryGrade;%0A  %7D%0A%0A  /*Get the average from the course grades as a float*/%0A  public float getAverage()%7B%0A    float average = (float) (mHistoryGrade + mPhysicsGrade + mMathsGrade + mEnglishGrade + mChemistryGrade) / 5;%0A    return average;%0A  %7D%0A%0A  /*To String method*/%0A  @Override%0A  public String toString()%7B%0A    return %22The student's grades in each course are as follows:%22 +%0A            %22%5CnHistory:  %22 + mHistoryGrade +%0A            %22%5CnPhysics:  %22 + mPhysicsGrade +%0A            %22%5CnMaths:    %22 + mMathsGrade   +%0A            %22%5CnEnglish:  %22 + mEnglishGrade +%0A            %22%5CnChemistry:%22 + mChemistryGrade +%0A            %22%5CnWith an average score of %22 + this.getAverage() + %22.%22;%0A  %7D%0A%0A%7D%0A

Add Report Card Class