/* function to calculate the ideal weight from males and female */
function idealWeight(height, gender) {
  if (gender == 'male') {
    return (height - 100) * 0.9;
  } else {
    return (height - 100) * 0.85;
  }
}