Write the pseudocode for program

Assignment Help Basic Computer Science
Reference no: EM132253201

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: EM132253201

Questions Cloud

Provide a simple example of timing diagrams : Provide a simple example of timing diagrams. Provide the history of VHDL programming language.
Discuss strategies for new product introduction : Discuss strategies for new product introduction. Do you agree, for example, with the late Steve Jobs (Apple), who stated that Apple should tell customers?
What is ipv4 : What is IPv4? What is URL (uniform resource locator)? What are the examples of URLs?
How does it relate to our oscm class : Select a relevant topic pertaining to Operations Management or Supply Chain. Find a related article, preferably written in the past 2 years.
Write the pseudocode for program : A nutritionist wants a program that calculates fat grams and calories in a food item, using the following formula:
What factors should a company take into consideration : Costing systems provide information that is used for a large variety of business decisions including planning production of goods and services.
Who might be liable for insider trading : If Jack was to buy the stock in GreenLife Company, based on Susan's advice about the merger, who might be liable for insider trading?
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 explain the operation of process costing : Process costing serves two related purposes. First, it measures the cost of goods manufactured on both a total and per-unit basis. This information is used.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identify the communication technologies used by bookstore

Begin working on the Where Did You Find that Book? Project by reading the Amazon.com Case Study 7-1 of Managing and Using Information Systems and visiting http://www.amazon.com and http://barnesandnoble.com. **Amazon article is attached.**

  Describe one real or future (even imaginary) iot

Describe one real or future (even imaginary) IoT (or CPS - Cyber Physical System) usecase. Provide details on the system(s) requirements from user(s)/actor(s) perspective.

  What was the growth rate from 2014-2015

In 2015 per capita Real GDP was $22,030 in Sweet Potato Hollow. What was the growth rate from 2014-2015.

  Evaluating and selecting the best dbms product

Describe the process of evaluating and selecting the best DBMS product. List examples of the requirements and features you used and justify any assumptions you make

  The dom with javascript and traversing the dom with jquery

The DOM with JavaScript and traversing the DOM with jQuery

  Evaluating average degree of a vertex for geometric graph

For random geometric graph, G(n, r), evaluate average degree of a vertex: at least distance r from boundary, on boundary (convex hull), and estimate time (big Oh) of determining all edges employing: all vertex pairs testing.

  Implement a class of min heaps using an array

Implement a class of min heaps using an array. Name your class Array Min Heap.

  What is the purpose of the finally clause

What happens when an exception is thrown, the code of a finally clause executes, and that code throws an exception of a different kind than the original one? Which one is caught by a surrounding catch clause? Write a sample program to try it out.

  How breadth-first ranking of vertices of g can be performed

Show how the breadth-first ranking of vertices of G can be performed on a p-process mesh.

  Will robots and artificial intelligence replace jobs

Will robots and artificial intelligence replace jobs in the future? What kind of jobs are most vulnerable? Provide examples of 2 jobs.

  Renaissance artists titian

Self-Portraits. Journal. The Renaissance artists Titian, Rembrandt, and Durer have each painted self-portraits. Imagine yourself as one of these artists (or another artist of your choice that has painted a self-portrait) and write a journal expres..

  Designing databases with visio professional

If you're using Visio, see "Appendix A: Designing Databases with Visio Professional 2010: A Tutorial" to help you complete Section 1

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