You are on page 1of 2

Item Calories Cost Quantity

Beer 200 $9.90 0 Problem 1: to minimize the number of items to get 2,400 or above
Bottled Water 0 $7.50 0 5;2450;82.8
Chocolate Bar 430 $12.00 0
Chips 250 $8.90 0 Problem 2: to minimize the cost to get 2,400 or above calories
Gummy Bears 300 $7.40 2 5;2400;54.5
Popcorn 320 $15.00 0
Hot Dog 265 $18.00 0 Problem 3: to maximize the number of items to buy but limit the c
Ice Cream 480 $10.90 3 5;2040;47.5
Cheese Nachos 560 $24.00 0
Pizza 480 $20.00 0 Problem 3 with constraints:
Hamburger 500 $25.00 0 - If we buy chips, we must buy the same amount of soda
Soda 120 $5.60 0 - There is a special promotion today, if total price > 50, there will
Fries 320 $15.00 0
Chicken Salad 280 $22.00 0
Total Items: 5
Total Calories: 2040
Total Cost: $ 47.50
$ 47.50
ems to get 2,400 or above calories

400 or above calories

ems to buy but limit the cost < $50 and calories > 2,000

amount of soda
otal price > 50, there will be a 10% discount

You might also like