Fat Gram Calculator
Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows:
Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula:
Percentage of calories from fat = (Fat grams x 9) / calories
ANSWER IN PSEUDOCODE
USE ONLY WHILE LOOPS
DO NOT USE MODULES/FUNCTIONS
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here