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 18:20
Find the solution of this system of equation -7x+y=-20 9x-3y=36
Answers: 1
question
Mathematics, 21.06.2019 19:00
Quick! a survey of 57 customers was taken at a bookstore regarding the types of books purchased. the survey found that 33 customers purchased mysteries, 25 purchased science fiction, 18 purchased romance novels, 12 purchased mysteries and science fiction, 9 purchased mysteries and romance novels, 6 purchased science fiction and romance novels, and 2 purchased all three types of books. a) how many of the customers surveyed purchased only mysteries? b) how many purchased mysteries and science fiction, but not romance novels? c) how many purchased mysteries or science fiction? d) how many purchased mysteries or science fiction, but not romance novels? e) how many purchased exactly two types of books?
Answers: 3
question
Mathematics, 21.06.2019 20:00
What’s the answer ? use the picture to see the problem
Answers: 2
question
Mathematics, 21.06.2019 20:30
Kai walked one and two-thirds of a mile on saturday and four and one-sixth of a mile on sunday. how many miles did kai walk?
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, 08.09.2021 07:50
question
History, 08.09.2021 07:50
question
Mathematics, 08.09.2021 07:50
Questions on the website: 13722367