Question: Can someone help me with this small Visual Basic program? Thank you. Instructions Write a program to analyze calories from fat. See both figures below

Can someone help me with this small Visual Basic program? Thank you.

Can someone help me with this small Visual Basic program? Thank you.

Instructions Write a program to analyze calories from fat. See both figures below for two different possible outcomes for this program. The American Heart Association suggests that at most 30% of the calories in our 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 and dividing that number by the total number of calories per serving. Write a program that requests the name, number of calories per serving, and the grams of fat per serving as input, and tells whether the food meets the American Heart Association recommendation. Nutrition | Nutrition Name of food: Lowfat milk Name of food: Oatmeal Calories per serving: 120 Grams of fat per serving: 5 Calories per serving: 117 Grams of fat per serving:3 Compute % Calories from Fat Compute % Calories from Fat Lowfat mik contains 37.50% calories from fat which exceeds AHA recommendation. Oatmeal contains 23.08% calories from fat which meets AHA recommendation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!