Sign In
Ask Question
Korbin Dougherty
Computers & Technology
12 September, 04:34
In pseudocode how can I calcute fat gram?
+4
Answers (
1
)
Payten Middleton
12 September, 04:56
0
Answer:Design a program that asks the user 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 are not less than 0.
According to nutritional formulas, the number of calories cannot exceed fat grams * 9. Make sure that the number of calories entered is not greater than fat grams * 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 * 9) / Calories
Some nutritionists classify food as " low fat" if less than 30percent 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.
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“In pseudocode how can I calcute fat gram? ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
To easily add an organizational chart to a document, users should select. smart art text boxes shapes or clip art
Answers (1)
The Windows security feature called User Account Control requires you to login as a user that is a member of Server Operators before running administrative tasks on applications. True or False?
Answers (1)
Given the following code, what will it display? int numbers[ ] = {99, 87, 66, 55, 101 }; cout << numbers[3] << endl;
Answers (2)
What is used to create computer programs?
Answers (1)
A thermostat with the processor program to control temperature is an example of what kind of computer
Answers (1)
New Questions in Computers & Technology
Which of the following is controlled by a computer operating system? a. System hardware (CPU, memory, storage, I/O devices) b. Application software (games, browser, office productivity, etc.) c. Both a and b d. Neither a nor b
Answers (1)
William found out that someone used his report on american culture without his permission. what is william a victim of?
Answers (1)
System is one in which you duplicate functions in order to improve the reliability and availability of a system.
Answers (1)
How many spaces should you use for an indent?
Answers (1)
A working model of a new product for testing purposes.
Answers (1)
Home
»
Computers & Technology
» In pseudocode how can I calcute fat gram?
Sign In
Sign Up
Forgot Password?