|
| 1 | +# Calorie Tracker |
| 2 | + |
| 3 | +A calorie is the amount of energy needed to raise the temperature of |
| 4 | +1 gram of water by 1 degree celcius. A kilo-calorie, often shortened to kcal, |
| 5 | +is one thousand calories. |
| 6 | + |
| 7 | +Food consumed by humans provides a certain amount of calories. Somewhat confusingly |
| 8 | +when people talk about "calories," as might be reported on food labels, they really mean |
| 9 | +kilo-calories. |
| 10 | + |
| 11 | +For most of the history of the human species food was not an abundant resource. As such |
| 12 | +when food is abundant our brains are predisposed to consuming as much of it as possible. |
| 13 | +This is a behavior likely evolved in order that one best withstand periods of famine.[^biology] |
| 14 | + |
| 15 | +The problem is that, while many places in the world still experience regular food shortages, |
| 16 | +many people have an extreme abundance of food available to them at all times. Not only that, |
| 17 | +the food they do have access to is often designed to be as addictive to consume as possible. |
| 18 | + |
| 19 | +As such many of these people gain extreme amounts of weight. |
| 20 | +This, in turn, lead to many health problems. |
| 21 | + |
| 22 | +Whether someone gains or loses weight over a given period of time comes down to "CiCo" - Calories In, Calories Out. |
| 23 | +If someone eats more in calories than they burn they are at a calorie surplus and will gain weight. |
| 24 | +If someone eats fewer calories than they burn they are at a calorie deficit and will lose weight. |
| 25 | + |
| 26 | +There are also people out there in the world with the opposite problem. Not eating enough leads to starvation. |
| 27 | +Whether because of trauma, upbringing, or some other circumstance: some people will not naturally eat enough even |
| 28 | +when food is available to them. |
| 29 | + |
| 30 | +## Your Goal |
| 31 | + |
| 32 | +Your goal is to make a program that helps someone track the number of calories they have consumed |
| 33 | +in a given day. |
| 34 | + |
| 35 | +The intent is to help them be intentional about the number of calories they are consuming. |
| 36 | + |
| 37 | +We will count it as a success if the program you produce at least helps them track the total. |
| 38 | + |
| 39 | +## Future Goals |
| 40 | + |
| 41 | +When you learn enough to do the following, come back to this project and expand it. |
| 42 | + |
| 43 | +* Make it so that if the computer running the program is turned off they do not lose information |
| 44 | +* Expand the program to also help them record the macro-nutritional value of the food they ate |
| 45 | +* Expand the program to also let them track their weight over time |
| 46 | +* Make it so that they can track their progress over multiple days, months, or years |
| 47 | +* Anything else you can think of |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +[^biology]: I am not an evolutionary biologist, but this is my understanding. |
0 commit comments