Question: Use only while loops, not modules/functions. Please explain answer. Reference Programming Exercise 3 on page 349. Write a pseudocode program for Programming Exercise 3. Leave

Use only while loops, not modules/functions. Please explain answer.

Reference Programming Exercise 3 on page 349. Write a pseudocode program for Programming Exercise 3. Leave out the "low fat" classification in the last paragraph. Do not use modules/functions. Use only While loops. 3. Fat Gram Calculator Design a program that asks 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 is not less than 0 . - According to nutritional formulas, the number of calories cannot exceedfat 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 4 yse the following formula ( F fat grams 9) Calories Reference Programming Exercise 3 on page 349. Write a pseudocode program for Programming Exercise 3. Leave out the "low fat" classification in the last paragraph. Do not use modules/functions. Use only While loops. 3. Fat Gram Calculator Design a program that asks 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 is not less than 0 . - According to nutritional formulas, the number of calories cannot exceedfat 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 4 yse the following formula ( F fat grams 9) Calories
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
