Home Segments Index Top Previous Next

717: Practice

Alter the calorie-dictionary application such that, each time that a food item is selected, the number of calories in one serving of the food is added to the total of all items so far selected, and that total is shown on the meter. The meter's title should be Total Calories, and the values shown on the meter should range from 0 to 2000, as in the following illustration: