subject
Mathematics, 17.11.2019 19:31 manou76

Urgent answers design a program that asks for the number of fat grams and calories in food items. 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 fat grams x 9. make sure that the number of calories entered is not greater than fat grams x 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:

percentage of calories from fat=(fat grams x 9) ÷ calories

some nutritionist 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 Mathematics

question
Mathematics, 20.06.2019 18:04
Hannah is 3 years older than twice her brother joey’s age. joey is 2 years old. how old is hannah? show all of your work! the number of students is five more than seven times the number of teachers. there are 10 teachers. how many students are there? be sure to show all of your work!
Answers: 1
question
Mathematics, 21.06.2019 17:00
Let f(x)=2x and g(x)=2x. graph the functions on the same coordinate plane. what are the solutions to the equation f(x)=g(x) ?me asap
Answers: 2
question
Mathematics, 21.06.2019 18:30
Can someone me out here and the tell me the greatest common factor
Answers: 1
question
Mathematics, 21.06.2019 19:30
:24% of students in a class are girls. if there are less than 30 students in this class, how many students are there? how many girls are there?
Answers: 2
You know the right answer?
Urgent answers design a program that asks for the number of fat grams and calories in food items. v...
Questions
Questions on the website: 13722363