Submit pseudocode and a flowchart for the following programming exercise:

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 are 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 nutritionists classify a food as "low fat" if less than 30 percent of its calories come from fat. If the results of this forumlas are less than 0.3, the program should display a message indicating the food is low in fat.

i don't know the i need help with this question to help

can I use google drive for create a flowchart

Pseudocode:

1. Prompt the user for the number of fat grams in the food item.
2. Read and store the input into the variable "fatGrams".
3. Prompt the user for the number of calories in the food item.
4. Read and store the input into the variable "calories".
5. Check if the values entered for fatGrams and calories are valid:
- If fatGrams < 0 or calories < 0, display an error message and terminate the program.
- If calories > (fatGrams * 9), display an error message and terminate the program.
6. Calculate the percentage of calories from fat:
- Set the variable "caloriesFromFat" as (fatGrams * 9).
- Set the variable "percentageFromFat" as (caloriesFromFat / calories).
7. Check if the food is considered low fat:
- If percentageFromFat < 0.3, display a message indicating that the food is low in fat.
8. Display the percentage of calories that come from fat.

Flowchart:
```
+---------------------+
| Start of Program |
+---------------------+
|
+---------------------+
| Prompt for fat |
+---->-- grams and calories |
| +---------------------+
| |
| +---------------------+
+---->--- Read inputs -------+
| +---------------------+
| |
| +---------------------+
+---->--- Validate inputs ---+
| +---------------------+
| |
| +---------------------+
+---->--- Calculate % of ----+
| -- calories from --+
| ----- fat ---------+
| |
| +---------------------+
+---->--- Check if food is -+
| ----- low in -----+
| ----- fat ---------+
| |
| +---------------------+
+---->---- Display result --+
+---------------------+
|
+---------------------+
| End of Program |
+---------------------+
```

Pseudocode:

1. Display "Enter the number of fat grams: "
2. Read fatGrams
3. Validate fatGrams:
a. If fatGrams < 0, display "Invalid input. The number of fat grams cannot be less than 0." and go back to step 1.
4. Display "Enter the number of calories: "
5. Read calories
6. Validate calories:
a. If calories < 0, display "Invalid input. The number of calories cannot be less than 0." and go back to step 4.
7. Calculate percentageOfCaloriesFromFat = (fatGrams * 9) / calories
8. Display "Percentage of calories from fat: " + percentageOfCaloriesFromFat
9. Check if percentageOfCaloriesFromFat < 0.3:
a. If true, display "This food is low in fat."
b. If false, display "This food is not low in fat."

Flowchart:

START
|
V
Display "Enter the number of fat grams: "
|
V
Read fatGrams
|
V
Validate fatGrams
|
V
If fatGrams < 0 then
|
V
Display "Invalid input. The number of fat grams cannot be less than 0."
|
V
Go back to "Read fatGrams"
|
V
Display "Enter the number of calories: "
|
V
Read calories
|
V
Validate calories
|
V
If calories < 0 then
|
V
Display "Invalid input. The number of calories cannot be less than 0."
|
V
Go back to "Read calories"
|
V
Calculate percentageOfCaloriesFromFat = (fatGrams * 9) / calories
|
V
Display "Percentage of calories from fat: " + percentageOfCaloriesFromFat
|
V
If percentageOfCaloriesFromFat < 0.3 then
|
V
Display "This food is low in fat."
|
V
END