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, 21.06.2019 16:00
You eat 8 strawberries and your friend eats 12 strawberries from a bowl. there are 20 strawberries left. which equation and solution give the original number of strawberries?
Answers: 1
question
Mathematics, 21.06.2019 17:20
Consider the proof. given: segment ab is parallel to line de. prove: what is the missing statement in step 5?
Answers: 3
question
Mathematics, 21.06.2019 17:30
Lance lived in portugal and brazil for a total of 14 months to learn portuguese. he learned an average of 130 new words per month when he lived in portugal, and an average of 150 new words per month when he lived in brazil. in total he learned 1920 new words. write a system of equations to represent the situation. use x to represent portugal, and y to represent brazil
Answers: 1
question
Mathematics, 21.06.2019 18:50
What is the range? can’t seem to find it out
Answers: 1
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
question
Mathematics, 17.11.2020 18:00
question
World Languages, 17.11.2020 18:00
question
Mathematics, 17.11.2020 18:00
question
History, 17.11.2020 18:00
Questions on the website: 13722362