Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can I do this step by step? Design a Pseudo-code and a flowchart that asks for the number of fat and calories in a

How can I do this step by step?

Design a Pseudo-code and a flowchart that asks for the number of fat and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less then 0. According to the 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. using the formula: percentage of calories from fat= (Fat grams * 9) / Calories. If the results of the formula are less than 0.3, the program should display a message indicating the food is low in fat.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Explain why the real interest rate is the reward for saving?

Answered: 1 week ago