assgn10/Undergraduate.cpp
bool Undergraduate::check_minor(string minor_title) {
	if (minor_title.size() > MAXIMUM_CHARACTERS_OF_MINOR) {
		// Minor title is too long
		return false;
	}else{
		return true;
	}
}
/**
 * Function to determine if the minor title of the Undergraduate student
 * is valid
 * Assume that all Undergraduate students have to select a major
 * and minor each
 * Minor title can contain any character; number of characters must be
 * less than 6 (<= 5), and no white space is allowed.
 * @param minor_title is the minor of the Undergraduate student
 * @return true if minor title is valid; else, return false
 */
Function to determine if the minor title of the Undergraduate student
is valid
Assume that all Undergraduate students have to select a major
and minor each
Minor title can contain any character; number of characters must be
less than 6 (<= 5), and no white space is allowed.
@param minor_title is the minor of the Undergraduate student
@return true if minor title is valid; else, return false
Function to determine if the minor title of the Undergraduate student is valid Assume that all Undergraduate students have to select a major and minor each Minor title can contain any character ; number of characters must be less than 6 ( < = 5 ) and no white space is allowed . @param minor_title is the minor of the Undergraduate student @return true if minor title is valid ; else return false
bool Undergraduate::check_minor(string minor_title) {
	if (minor_title.size() > MAXIMUM_CHARACTERS_OF_MINOR) {
		return false;
	}else{
		return true;
	}
}
bool Undergraduate :: check_minor ( string minor_title ) { if ( minor_title . size ( ) > MAXIMUM_CHARACTERS_OF_MINOR ) { return false ; } else { return true ; } }
Function to determine if the minor title of the Undergraduate student
 is valid
 Assume that all Undergraduate students have to select a major
 and minor each
 Minor title can contain any character; number of characters must be
 less than 6 (<= 5), and no white space is allowed.
Function to determine if the minor title of the Undergraduate student is valid Assume that all Undergraduate students have to select a major and minor each Minor title can contain any character ; number of characters must be less than 6 ( < = 5 ) and no white space is allowed .
// Minor title is too long