Question: You ll create both pseudocode and a flowchart to design a program that asks for fat grams and calories in a food item. Validate the
Youll 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 arent less than
Ensure that the number of calories entered isnt greater than fat grams times
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 times : calories
Some nutritionists classify a food as low fat if less than percent of its calories come from fat. If the results of this formula are less than the program should display a message indicating the food is low in fat.
Review Appendices B and C in your textbook for guidance when working on your project. Use free trials of any of the programs listed in CSC Graded Project to create the flowchart. Write your pseudocode in a plaintext editor such as Notepad or TextEdit, and save as a text file txt Save a screenshot of your flowchart as a JPEG file jpg
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
