subject

PYTHON LANGUAGE Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows:  Make sure the number of fat grams and calories is not less than 0.  According to nutritional formulas, the number of calories cannot exceed fatGrams×9. Make sure that the number of calories entered is not greater than fatGrams×9 Once correct data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: =(Fatgrams×9)÷Calories Some nutritionists classify a food as “low fat” if less than 30 percent of its calories come from fat. If the results of this formula are less than 0.3, the program should display a message indicating the food is low in fat

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
You know the right answer?
PYTHON LANGUAGE Design a program that asks for the number of fat grams and calories in a food item....
Questions
question
Mathematics, 26.05.2021 01:00
question
History, 26.05.2021 01:00
question
Mathematics, 26.05.2021 01:00
question
English, 26.05.2021 01:00