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

  Constraint programming

It is about the constraint programming. We have party organizations for being social. Each participant has their own preference list for parties, every party organizers has their own preference list for providing the parties.

  Find out coding of binary information and error detection

find out Coding of Binary Information and Error Detection.

  Deducing an expression for pp

Utilizing the information above, deduce an expression for the PP, and provide comment on resulting expression. Also, what the ATM services would you utilize in order to obtain the best possible performance?

  Transmitting the rtp stream

Consider that a sender transmits a silence suppressed the RTP stream of G.711 audio to the receiver (G.711 refers to the name of standard for 64Kbps PCM we discussed in class).

  Why throw and handle an appropriate exception

Write down a C++ program that prompts the user to enter a length in feet and inches and outputs the equivalent length in centimeters. If the user enters a negative number or a non-digit number, throw and handle an appropriate exception and prompt ..

  Define a recursive procedure

Define a recursive procedure

  Give utilization of the cpu for the given two processes

Two real-time methods are running on a computer. The first one runs every 25 msec for 10 msec. The second one runs every 40 msec for 15 msec. What is the utilization of the CPU for the given two processes?

  Design the logic that merges the two files

Design the logic that merges the two files to produce one combined name-and-address file, which the office staff can use for addressing mailings of the practice's monthly Healthy Lifestyles newsletter.

  Design the calculate button the accept button

You have been hired by an engineering company to develop software to perform advanced geometric calculation. Your new boss asked you to develop an application that allows engineers to calculate the surface area and the volume of a sphere. For this..

  Analyzing the database schema

OrderLine (OrderNum, PartNum, NumOrdered, QuotedPrice), Part (PartNum, Description, OnHand, Class, Warehouse, Price), On the basis of code above, list the number and name of all the customers.

  Decribe each of the algorithms as to there stability

A sorting algorithm is stable if two data items having the equal value are not rearranged with respect to each other at any stage of the algorithm. decribe each of the algorithms as to there stability

  Addressing and naming model

Sketch a plan for development of the addressing and the naming model in an environment of following given scenario: Ten (10) departments in the 1,000-employee organization. Equal separation by geography

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