getTdee method
Implementation
double getTdee() {
double bmr = getBMR();
switch (person.activityLevel) {
case ActivityLevel.sedentary:
return bmr * 1.2;
case ActivityLevel.lightlyActive:
return bmr * 1.375;
case ActivityLevel.moderatelyActive:
return bmr * 1.55;
case ActivityLevel.veryActive:
return bmr * 1.725;
case ActivityLevel.superActive:
return bmr * 1.9;
default:
return bmr;
}
}