Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 19 April 2012 - 06:21 PM
I was thinking of writing a program that would calculate the nutrition facts for a recipe, based on the nutrition facts (and quantities) of the ingredients.
My question is: do I just add all the quantities of the nutrition facts of the ingredients together to get the facts for the result, or is there some different formula?
In other words, if one ingredient has 4 mg of whateveritis and the other ingredient has 7 mg of whateveritis, then would the resulting product of the recipe have 11 mg of whateveritis?
And would this be for any kind of recipe (i.e. same for cooking, baking, etc.)?
Posted 20 April 2012 - 07:55 AM
My MineCraft server site: http://banishedwings.enjin.com/
Also tagged with one or more of these keywords: add, ingredients, nutrition facts, recipe, result
General Forums →
General Computing →
Language Forums →
Tutorial Forums →
Other Programming Tutorials →
Video Tutorials →