Calories from Fat and Carbohydrates.
Chapter Assignment 5
Draw your flowchart and write your pseudocode (Python) in a Microsoft Word document. Write your Python code using IDLE. Save both the word file and python file (.py)
Calories from Fat and Carbohydrates
A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. Then, she calculates the number of calories that result from the fat, using the following formula:
Calories from fat = fat grams x 9
Next, she calculates the number of calories that result from the carbohydrates, using the following formula:
Calories from carbs = carb grams 4