///////
//
// Student: Russell Lowke
//     T.F: Francis Crick
// Unit Three, pencil-and-paper - question 1 [worth 1pt],  7/6/2002
//
//  Write a Boolean expression for the desired qualities in the following personal ad:
//  "Wanted for companionship: 25-40 years old, non-smoking, under 66 inches tall,
//   under 140 pounds, good-looking, able to relocate."
//

bool wantedFor(bool smoking, 
			   bool goodLooking, 
			   bool ableToRelocate,
			   int  age,
			   int  height,
			   int  weight)
{
	return ( (age >= 25)    &&           // 25 to
			 (age <= 40)    &&           // 40 years old,
			 (height < 66)  &&           // under 66 inches tall,
			 (weight < 140) &&           // under 140 pounds,
			 (! smoking)    &&           // non-smoking,
			 (goodLooking)  &&           // good-looking,
			 (ableToRelocate) );         // able to relocate
}