Sign In
Ask Question
Computers & Technology
Randall Petty
16 June, 23:39
In pseudocode how can I calcute fat gram?
+2
Answers (
1
)
Romeo Burke
17 June, 00:40
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?
Get an answer to your question ✅
“In pseudocode how can I calcute fat gram? ...”
in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers
You Might be Interested in
A 'array palindrome' is an array which, when its elements are reversed, remains the same (i. e., the elements of the array are same when scanned forward or backward) Write a recursive, boolean-valued method, isPalindrome, that accepts an
Answers (1)
Drivers are used extensively in ___ development, because called methods and child modules are developed and unit-tested before their parents are developed.
Answers (1)
What keystroke combination inserts a line break in a cell
Answers (1)
3. The music on a CD is created using a sampling rate of 44,000 measurements per second. Each measurement is stored as a number that represents a specific voltage level. Suppose each of these numbers requires two bytes of storage space.
Answers (1)
What is the name of the process of heat transfer in which heat is transmitted through light waves? 1Conduction 2Convection 3Evaporation 4 Radiation
Answers (1)
New Questions in Computers & Technology
Who, under SOX, is legally accountable for certifying and approving the integrity of the company and its financial reporting to the Securities and Exchange Commission (SEC) and other financial organizations?
Answers (1)
Given memory partitions of 100 KB, 500 Kb, 200 KB, 300 KB, and 600 KB (in order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB, (in order) ?
Answers (1)
Joe always misspells the word calendar. He types the word as calender but the correct spelling appears on the document. Which feature of the word processor corrects this word? A. AutoCorrect B. Spell Check C. Grammar Check D. Change
Answers (1)
What happens when you double-click one of the graphic options in the middle panel of the choose a smartart graphic dialog box?
Answers (1)
Which type of disc is a type of storage media that consists of a flat, round, portable metal disc made of metal, plastic, and lacquer that is written and read by a laser?
Answers (1)
Home
»
Computers & Technology
» In pseudocode how can I calcute fat gram?
Sign In
Sign Up
Forgot Password?