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

  Graph a linear equation

What is the minimum information needed to be able to graph a linear equation? What process do you go through to graph a linear equation? Give an example, starting with a linear equation, and explain the steps you would use to graph it.

  What is an advantage of virtualization

What is an advantage of virtualization? List and explain one type of virtualization. What are three of the major data functions performed by a DBMS? Briefly explain the functions. Why are internal threats a major challenge for organizations? How can ..

  Calculate the total revenue and the marginal revenue

Calculate the total revenue and the marginal revenue per album.

  Discuss and share rich and diverse assortment of reference

Discuss and share the rich and diverse assortment of reference sources for the Bourne Again Shell (BASH).

  Determine the link utilization

If a sender sends N packets to a receiver in a pipelined fashion, as outlined in Figure P14.11, and the parameters are L = 10,000 bits, R = 1 Gbps, RTT = 0.07 s, the transmission delay DTR = L/R and N = 2, determine the link utilization.

  Consider a sample with data values

Consider a sample with data values of 2, 4, and 6. What is the mean?

  What is the duration of a particular type

A microprocessor is clocked at a rate of 8 GHz. a. How long is a clock cycle? 1/frequency=1/(8*10^9) b. What is the duration of a particular type of machine instruction consisting of six clock cycles?

  General purpose registers

Construct a memory map for both ATMega328 and the Intel Xeon (E7 v3 family).  Include hexadecimal addresses to denote memory locations and clearly indicate the name for each section of memory (i.e. General Purpose Registers, Special Purpose Regist..

  Domain of discourse is the group of people

Suppose the domain of discourse is the group of people in our IST class, and define the following predicates as follows:

  Derive the lm curve

Derive the LM curve. Why is it upward sloping? Under what conditions will it be vertical and horizontal?

  Calculate interest earned in one year

Calculate the interest earned in 1 year given starting account balance B and annual interest rate I and supposing simple interst, that is no compounding.

  Write the definition of the function

Write the definition of the function, leavesCount, that takes as a parameter a pointer to the root node of a binary tree and returns the number of leaves in a binary tree. Add this function to the class binaryTreeType and create a program to test ..

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