/************************************************************************************************** * Program Name : Week 3 - GPA * Author : Terry Weiss * Date : February 12, 2016 * Course/Section : CSC264 - 001 * Program Description: This class holds the information for a specific semester. * * Methods: * ------- * **************************************************************************************************/ package transcript; public class SemesterInfo { public static int MAX_COURSES = 7; //Maximum valid number of courses in a semester public static int MAX_CREDITS = 18; //Maximum valid number of credits in a semester protected String name; //Name of semester protected String courseNumber; //Numerical portion of the course name protected int creditHours; //Running total of credits in semester protected int courseCount; //Running total of courses in semester protected CourseInfo[] courseList; //List of courses currently in the semester /********************************************************************************************** * Method Name : SemesterInfo - Constructor * Author : Terry Weiss * Date : February 12, 2016 * Course/Section : CSC264 - 001 * Program Description: This builds an empty semester using the given name. * * BEGIN SemesterInfo * Assign semester name * Init credit hours to 0 * Init course count to 0 * Init empty course list to size of defined max number of courses * END SemesterInfo **********************************************************************************************/ SemesterInfo(String name) { //Local constants //Local variables /***************************** Start CourseInfo Constructor ****************************/ //Assign semester name this.name = name; //Init credit hours to 0 creditHours = 0; //Init course count to 0 courseCount = 0; //Init course list to size of defined max number of courses courseList = new CourseInfo[MAX_COURSES]; }//end SemesterInfo constructor }//end class CourseInfo