getCarbNeedPerDay method
Implementation
double getCarbNeedPerDay() {
double totalCalories = getCalorieNeedPerDay();
double proteinCalories = getProteinNeedPerDay() * 4;
double fatCalories = getFatNeedPerDay() * 9;
return (totalCalories - proteinCalories - fatCalories) / 4;
}