1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
int main()
{
double basal_metabolic_total, physical_activity_total, servings_needed, digestion_calories;
int weight, intensity, minutes, calories;
input(weight, intensity, minutes, calories);
basal_metabolic_total = basal_metabolic(weight);
physical_activity_total = physical_activity(weight, intensity, minutes);
servings_needed = servings(weight, basal_metabolic_total, intensity, minutes, physical_activity_total, calories);
digestion_calories = digestion(servings_needed, calories);
output(weight, basal_metabolic_total, intensity, minutes, physical_activity_total, calories, servings_needed, digestion_calories);
return(0);
}
|