// CS2310 Project 1 Specification file #include #include #define MAX_NUM_STUDENTS 15 #define MAX_LEN_NAME 20 #define LEN_SSN 10 enum Rank {Freshment, Sofomore, Junior, Senior}; enum letGrade {A, B, C, D, F}; class StuRecord { public: void ReadRecord(ifstream& inputFile); // Precondition: // Input stream inputfile is opened and the file is not empty. // Postcondition: // The next student record in the input file is read and stored // in this object. The rank is save as a value of the enumeration // type "letGrade" according to the read-in numeric rank number. void Average(); // Precondition: // The 3 grades (grade1, grade2, and grade3) are assigned. // Postcondition: // Find the average of the 3 grades. void LetterGrade(); // Precondition: // The average is assigned. // Postcondition: // Determine the letter grade according to the average. void Print() const; // Precondition: // name, ssn, rank, and grade are assigned. // Postcondition: // Print out the student record. StuRecord(); // Default constructor. private: string name; string ssn; Rank rank; letGrade grade; int grade1, grade2, grade3, average; };