I'm trying to get it to return quality points based on the letter grade that's entered, but it won't return them. I just keep getting 0.
/** * Write a description of class Course here. * * @author (your name) * @version (a version number or a date) */ public class Course { private String courseName; private int creditHours; private char letterGrade; private int qualityPoints; /** * Constructor for objects of class Course */ public Course(String newCourseName, int newCreditHours, char newLetterGrade) { setNameHoursGrade(newCourseName, newCreditHours, newLetterGrade); } /** * */ public void setNameHoursGrade (String newCourseName, int newCreditHours, char newLetterGrade) { courseName = newCourseName; creditHours = newCreditHours; letterGrade = newLetterGrade; } /** * */ private void calculateQPoints() { if (letterGrade == 'A' || letterGrade == 'a') { qualityPoints = 4; } if (letterGrade == 'B' || letterGrade == 'b') { qualityPoints = 3; } if (letterGrade == 'C' || letterGrade == 'c') { qualityPoints = 2; } if (letterGrade == 'D' || letterGrade == 'd') { qualityPoints = 1; } if (letterGrade == 'F' || letterGrade == 'f') { qualityPoints = 0; } } public String getCourseName() { return courseName; } public int getCreditHours() { return creditHours; } public char getLetterGrade() { return letterGrade; } public int getQualityPoints() { return qualityPoints; } }