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