Calculates fat grams and calories in a food item

Assignment Help Basic Computer Science
Reference no: EM132244970

A nutritionist wants a program that calculates fat grams and calories in a food item, using the following formula:

Percentage of calories from fat = (Fat grams x 9) divided by Calories

Also, adhere to the following rules: Make sure the number of fat grams and calories is not less than 0, and the number of calories cannot exceed fat grams x 9. If less than 30 percent of a foods calories come from fat, the program should display a message that the item is "low in fat"

1. Write the pseudocode for this program.

2. Draw a flowchart for this program.

Reference no: EM132244970

Questions Cloud

The implementation of electronic health record : Need help developing a Gantt chart in Microsoft project. The topic is the implementation of an electronic health record.
What is the purpose of combinational logic : a. What is the purpose of combinational logic? b. What is the function of logic converter?
Compare ip addresses to us postal address : Compare IP addresses to US Postal Address (such as Seattle U dormitory address). Use real examples.
How to manage difficult negotiations on global level : Write report on the role of ethics in negotiations and propose responses to deception,and explain how to manage difficult negotiations on the global level.
Calculates fat grams and calories in a food item : A nutritionist wants a program that calculates fat grams and calories in a food item, using the following formula:
Discuss the federal rules of civil procedure in detail : What likely effect will its emphasis on electronically stored information (ESI) have on an organization's need for a digital forensic capability?
Find system configuration information : Discuss any of the processes used to find system configuration information, fix a network connection, or to configure remote services
Briefly reflect on evelyns thesis project and defense : PHIL 1201 - ETHICS - TOPICS -- FIRST PAPER - Briefly reflect on Evelyns thesis project and defense in The Shape of Things. Using the course materials
Select three layers of the osi model : Select three layers of the OSI model. Describe what the layers do, any specific protocols that are utilized in that layer, and why those layers are important.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Willingness to pay and willingness to accept

Willingness to pay" and "willingness to accept" estimates of the value of environmental and natural resources often can vary by a factor of up to 10.

  What is the definition of social change

What is the definition of social change? What does social change mean to you in your daily life? Do you think about social change on a daily basis? How can an understanding and awareness of social change impact your daily life

  One could argue that the internet

One could argue that the Internet provides all the redundant routing and alternate sites an enterprise needs.

  The context of a database system

1. Discuss what a user view represents in the context of a database system.

  Change a particular industry in the future

ITECH 1100 Understanding the Digital Revolution - explore how IT might change a particular industry in the future, based on current trends and technologies

  Define a simple vector font for input to routine

Determine an appropriate value for the shear parameter by comparing intellect and plain text in some available font. Define a simple vector font for input to routine.

  Examine the specifications for an enterprise class firewall

Examine the specifications for an enterprise class firewall and a personal or home firewall. Determine why all firewalls are not equal. Assess the effectiveness of each and determine if one outperforms another at its intended function.

  Numerous examples of classes with associated variables

In the Discussion this week, numerous examples of classes with associated variables and methods were generated. Choose one of the methods that requires a decision be made by the program. It may be a method from the class you described in the Discu..

  Sorting algorithms are one kind of algorithm

Sorting algorithms are one kind of algorithm whose performance may depend upon the data. Choose one of the sorting algorithms or any other algorithm

  Write a recursive preorder traversal method

Write a recursive preorder traversal method for this implementation.

  Design a class named clock that contains private data fields

Design a class named Clock that contains private data fields for startTime and endTime, no argument constructor that initializes the startTime to the current time, a method named start() that resets the startTime to the given time, a stop() me..

  Find out about an individual by combing data

Knowing what an organization can find out about an individual by combing data from various sources, what are your opinions on the responsibilities

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd