Question: MyJava Coffee Outlet runs a catalog business. It sells only one type of coffee beans. The company sells the coffee in 2-lb bags only and
MyJava Coffee Outlet runs a catalog business. It sells only one type of coffee beans. The company sells the
coffee in 2-lb bags only and the price of a single 2-lb bag is $5.50 when a customer places an order, the
company ships the order in boxes. The boxes come in 3 sizes with 3 different costs:
Large Box Medium Box Small Box
Capacity 20 bgs 10 bgs 5 bgs
Cost $1.80 $1.00 $0.60
The order is shipped using the least number of boxes. For example, the order of 52 bags will be shipped in 2
boxes: 2 large boxes, 1medium and 1 small. Develop an application that computes the total cost of an order. •
• Number of Bags Ordered: 52
• The Cost of Order: $ 286.00
• Boxes Used:
2 Large - $3.60
1 Medium - $1.00
1 Small - $0.60
Your total cost is: $ 291.20
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
Solution Note Large and Medium bags should not have any empty spaces where as Small box can have So 1st check large whether it can be filled completel... View full answer
Get step-by-step solutions from verified subject matter experts
