Answer:
True
Explanation:
I had this on a quiz before and i passed with a 100
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.
Explanation:
Answer:
The flow chart is as shown in the attachment. Three grades are shown, and the rest of the calculation is done in the same manner. At first, the marks are input and stored in an array or list. Now its average is being found. And the average is compared and found in which category from the mentioned, it is part of. And that grade is being printed for that student. Similarly, we can follow these steps to grade each student at the school.
Explanation:
Please check the answer section, and attachment.