assgn9/StudentDB.cpp
bool StudentDB::check_studentage(int age) {
	if((age<1) || (age>120)) {
		return false;
	}else{
		return true;
	}
}
/**
 * Function to check if the student's age is valid
 * @param age is the age of the student; it should not be over 120,
 *	and it must be greater than 0.
 *	Needs more information since it makes no sense to have a toddler
 *	pursuing a Ph.D. in Computer Engineering or Biochemistry;
 *	assertions for this method implementation suffice according to
 *	the requirements of the assignment
 * @return true if age is valid; else, return false
 */
Function to check if the student's age is valid
@param age is the age of the student; it should not be over 120,
and it must be greater than 0.
Needs more information since it makes no sense to have a toddler
pursuing a Ph.D. in Computer Engineering or Biochemistry;
assertions for this method implementation suffice according to
the requirements of the assignment
@return true if age is valid; else, return false
Function to check if the student ' s age is valid @param age is the age of the student ; it should not be over 120 and it must be greater than 0 . Needs more information since it makes no sense to have a toddler pursuing a Ph . D . in Computer Engineering or Biochemistry ; assertions for this method implementation suffice according to the requirements of the assignment @return true if age is valid ; else return false
bool StudentDB::check_studentage(int age) {
	if((age<1) || (age>120)) {
		return false;
	}else{
		return true;
	}
}
bool StudentDB :: check_studentage ( int age ) { if ( ( age < 1 ) || ( age > 120 ) ) { return false ; } else { return true ; } }
Function to check if the student's age is valid
 @param age is the age of the student; it should not be over 120,
      and it must be greater than 0.
Function to check if the student ' s age is valid @param age is the age of the student ; it should not be over 120 and it must be greater than 0 .