Pop Quiz – Advanced Word Problem

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.

Posted in General | 2 Comments


  1. Erin said on May 18, 2005 @ 11:39 pm:

    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)

  2. danimal said on May 19, 2005 @ 12:53 am:

    easy. get a sam’s club or costco membership. one stop shopping in mass quantities man.


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.