Calculate and display the percentage of calories

Assignment Help Computer Engineering
Reference no: EM13322732

Make sure that the number of calories entered is not greater than fat grams x9.

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 x 9) / calories

some nutritionist classify a food as low fat if less than 30 percent of its calories come from fat.if the results of this fomrula are less then 0.3 the program should display a message indicating the food is low in fat

Reference no: EM13322732

Questions Cloud

Explain the resulting ph when .005 moles of koh is added : What is the resulting pH when .005 moles of KOH is added to .1 L of buffer solution that is .100 M in H2PO4- and .100 m HPO4^2- and the Ka2 = 6.2x10^-8
How far downstream must your assistant go to collect : The width of the river is 10 ft, the depth is 1 ft, longitudinal slope of 0.001, and the Manning's coefficients is 0.03. To estimate travel times and dispersion coefficients, you injected 50 gm of rhodamine dye at one bank of the river
Explain the kantian arguments denis arnold and norman bowie : Explain the Kantian arguments Denis Arnold and Norman Bowie use in "Sweatshops and Respect for Persons" to support the claim that MNEs have duties to ensure that their off-shore contract factories meet minimum safety standards
Use game theory to to set up a game designed : Write a paper that uses game theory to to set up a game designed to help a consumer decide whether to buy life insurance or not.
Calculate and display the percentage of calories : 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 x 9) / calories
Create a program that calculates fat grams and calories : john raymond was so pleased with the program you created for his clients that he regers you to his coworker,a nutrionist in the same facility.
Determine which material has a better toughness and why : Two materials A and B are tested and a stress-strain curve is plotted. Material B has a yield stress of 200 MPa and Material A has a Yield stress of 120 MPa. These materials have plastic Deformation occur at the same Yield strain %.
Compute the equilibrium constant for fe3 : If the equilibrium concentration of Fe3+, SCN-, and FeSCN2+ are 0.00140 M, 0.00140 M, and 0.000414 M, respectively, calculate the equilibrium constant for Fe3+ + SCN- FeSCN2+.
Conduct a mini strategic audit on e-company : Conduct a mini Strategic Audit on e-company

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many bits are needed for the pointer?

take a fixed partitioning scheme with equal-size partitions of 2^16 bytes and a total main memory size of 2^24 bytes. A process table is maintained that includes a pointer to a partition for each resident process.

  Group of data elements that describes a single entity

Which of the following data structures is a group of data elements that usually describes a single entity or event.

  Write a recursive process called productarray

Write a recursive method called productArray that takes an array of integers, a start index and an end index and returns the product of elements of the array.

  Write a program that reads in a list of positive integers

Write a program that reads in a list of positive integers. Write down a program which asks user to respond to a question by entering either 1 for yes or 2 for no.

  What aspects of environment support structure of colleges

What aspects of environment support structure of colleges.

  Plan a decision tree for this situation

Premium Airlines has recently offered to settle claims for a class-action suit that was originated for alleged price fixing of tickets. The proposed settlement is stated as follows. Draw a decision tree for this situation.

  Make a form with a text property of friends

On the Entry tabPage add 4 textboxes to take entry for a first name, last name, birth month, and birthday and add a MaskedTextbox to take entry for a phone number formatted as 999-9999.

  What are the differences between two standards

One recent change in web design is the shift in standards from HTML to XHTML. Describe how a web designer defines a page as "XHTML" as opposed to "HTML" and find two different types of XHTML standards. What are the differences between these two st..

  Note down an applet that simulates a soft drink machine

Write down an applet that simulates a soft drink machine. The simulated machine dispenses the following soft drinks: cola, lemon-lime soda, grape soda, root beer, and bottled water. These drinks cost $0.75 each to purchase.

  Understanding rms values and peak values of voltage current

Understanding rms values and peak values of voltage/current, A personal computer that has a built in monitor and keyboard requires 40W at 115V(RMS).

  Express why you agree or disagree with this

Some organizations feel that IT planning is a waste of time since the competitive environment and technologies change too rapidly. They argue that their plans will be obsolete before they are completed. Briefly discuss/explain why you agree or dis..

  Make a simple scientific calculator

make a simple scientific calculator that will allow the following functions to be calculated.

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