Write a program that asks the user to enter the number of


Write a program that asks the user to enter the number of calories and fat grams in a food item. The program should display the percentage of the calories that come from fat. One gram of fat has 9 calories, so:

(Calories from fat) = (fat grams) * 9

The percentage of calories from fat can be calculated as:

(Calories from fat) / (total calories)

If the calories from fat are less than 30% of the total calories of the food, it should also display a message indicating the food is low in fat.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that asks the user to enter the number of
Reference No:- TGS0138709

Expected delivery within 24 Hours