assgn10/Undergraduate.cpp
void Undergraduate::set_minor (string minor_title) {
	if(check_minor(minor_title)) {
		minor = minor_title;
	}else{
		minor = minor_title.substr(0,MAXIMUM_CHARACTERS_OF_MINOR);
	}
}
/**
 * Function to assign/update the minor of the undergraduate student
 * Assume that all Undergraduate students have to select a major
 * and minor each
 * @param minor_title is the title of the Undergraduate student's minor
 * @precondition minor_title must be a valid minor title;
 *	it must contain no whitespace and be less than 6 characters
 * @return nothing
 */
Function to assign/update the minor of the undergraduate student
Assume that all Undergraduate students have to select a major
and minor each
@param minor_title is the title of the Undergraduate student's minor
@precondition minor_title must be a valid minor title;
it must contain no whitespace and be less than 6 characters
@return nothing
Function to assign / update the minor of the undergraduate student Assume that all Undergraduate students have to select a major and minor each @param minor_title is the title of the Undergraduate student ' s minor @precondition minor_title must be a valid minor title ; it must contain no whitespace and be less than 6 characters @return nothing
void Undergraduate::set_minor (string minor_title) {
	if(check_minor(minor_title)) {
		minor = minor_title;
	}else{
		minor = minor_title.substr(0,MAXIMUM_CHARACTERS_OF_MINOR);
	}
}
void Undergraduate :: set_minor ( string minor_title ) { if ( check_minor ( minor_title ) ) { minor = minor_title ; } else { minor = minor_title . substr ( 0 , MAXIMUM_CHARACTERS_OF_MINOR ) ; } }
Function to assign/update the minor of the undergraduate student
 Assume that all Undergraduate students have to select a major
 and minor each
 @param minor_title is the title of the Undergraduate student's minor
 @precondition minor_title must be a valid minor title;
      it must contain no whitespace and be less than 6 characters
 @return nothing
Function to assign / update the minor of the undergraduate student Assume that all Undergraduate students have to select a major and minor each @param minor_title is the title of the Undergraduate student ' s minor @precondition minor_title must be a valid minor title ; it must contain no whitespace and be less than 6 characters @return nothing