Ok,
First off this isn't a book problem so I'm not really sure if it can be solved. I just kinda dreamed this up one day while deciding to count the calories in my lunch + breakfast. It should work..if I thought everything through, and I can live with a few simplying assumptions. Anyhow, I...