Create both pseudocode

Click Here To Download This Answer Instantly



Create both pseudocode and a flowchart to design a program that asks for fat grams and calories in a food item.

Validate the input as follows:

Make sure the numbers of fat grams and calories aren’t less than 0.

Ensure that the number of calories entered isn’t greater thanfat 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