Posted by Thomas Mon, 16 May 2005 20:44:34 +0000
Thomas has 13 slices of cheese, 4 sandwich buns, and 20 chicken pattis. Thomas eats two sanwhiches at a time, using two buns, two pattis, and two slices of cheese. Sandwhich buns are bought in groups of 8, cheese in 16 or 24, and pattis in 11. Buns should be bought at Wal-Mart, cheese at Kroger or Wal-mart, and pattis at Kroger (and possibly Wal-Mart). What would the optimal combination of buying stuff be, if Thomas is trying to reduce the trips to both Wal-Mart and Kroger?
Extra points if you write a program to figure it out. Double points if you use Java. Negative points if you use Fortran.
buy a whole bunch of all of them at walmart, and freeze what you don’t plan to eat in the next week or so. (schools out, no math for me)
easy. get a sam’s club or costco membership. one stop shopping in mass quantities man.
peace