The American Heart Association suggests that at most 30 percent of the calories incour diet come from fat. Although food labels give the number of calories and amount of fat per serving, they often do not give the percentage of calories from fat. This percentage can be calculated by multiplying the number of grams of fat in one serving by 9, dividing the number by the total number of calories per serving, and multiplying the result by 100. Write a program that requests the name, number of calories per serving, and the grams of fat per serving as inputs, and tells us whether the food meets the American Heart Association recommendation. A sample follows: Name of Food: Lowfat milk Calories per serving: 120 Grams of fat per serving: 5 Compute % Calories from Fat Lowfat milk contains 37.50% calories from fat Lowfat milk exceeds the AHA recommendation
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
Visual Basic 6.0