Question: Microsoft Visual Basic: Need assistance writing the programming code (microsoft visual basic) for the following question: The manager of Willow Springs Health Club wants a
Microsoft Visual Basic: Need assistance writing the programming code (microsoft visual basic) for the following question:
The manager of Willow Springs Health Club wants a program that allows her to enter the number of calories and grams of fat contained in a specific food. The program should calculate and display two values: the foods fat calories and its fat percentage. The fat calories are the number of calories attributed to fat and are calculated by multiplying the food's fat grams by the number 9; this is because each gram of fat contains nine calories. The fat percentage is the ratio of the food's fat calories to its total calories. You calculate the fat percentage by dividing the food's fat calories by its total calories and then multyplying the result by 100. The fat percentage should be displayed with zero decimal places.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
