I am looking for things that might make sense to students in elementary school. Maybe a bright young student would extend the question as you have.
However, I will limit the results to lists and tables, because I ask to find how many solutions there are. Thanks for the useful question. Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter B. Kessler Sent: Friday, October 03, 2014 2:46 PM To: [email protected] Subject: Re: [Jprogramming] Protect the Almond Cookies Are only 2-dimensional boxes permitted? That is, are these allowed? 2 2 3 $ <'0' +-+-+-+ |0|0|0| +-+-+-+ |0|0|0| +-+-+-+ +-+-+-+ |0|0|0| +-+-+-+ |0|0|0| +-+-+-+ 2 3 2 $ <'0' +-+-+ |0|0| +-+-+ |0|0| +-+-+ |0|0| +-+-+ +-+-+ |0|0| +-+-+ |0|0| +-+-+ |0|0| +-+-+ 3 2 2 $ <'0' +-+-+ |0|0| +-+-+ |0|0| +-+-+ +-+-+ |0|0| +-+-+ |0|0| +-+-+ +-+-+ |0|0| +-+-+ |0|0| +-+-+ If I only have 2x2 boxes on hand, can I shrink wrap 3 of them together to package an order of 12 eggs? What am I trying in minimize: the number of different kinds of boxes to keep in stock, or the number of empty pockets that I ship (e.g., with an order for 5), or what? Does it matter that people mostly buy a dozen eggs, or a half-dozen eggs, and that they rarely buy just one egg? What's the relative cost of boxes to eggs? E.g., if someone orders 5 eggs and I ship them a pre-packaged box of 6, is that better or worse (for me) than keeping around a stock of boxes that hold 5 eggs and hand-packing one just for them? Can I change the catalog so the price of a order of 5 eggs is the cost of 5 eggs plus the cost of a box that holds 6 eggs, whereas the price of an order of 6 eggs is the cost of 6 eggs plus the cost of the same box? Probably I've wandered outside of the question you wanted me to express in J. ... peter On 10/ 3/14 01:53 AM, Linda Alvord wrote: > As a result of Billl’s message we have found a new supplier of cookie boxes > which will decrease costs and increase profist for our company. > > However, the challenge remains the same. After eliminataing the need for B, > we have three boxes so far. The issue remains to find all the possible boxed > eggs for our customers if we can send 1 to 12 eggs upon request. The answer > should determine the number of different boxes we will need. ]AC12A=:2 6$<'0' > ┌─┬─┬─┬─┬─┬─┐ > │0│0│0│0│0│0│ > ├─┼─┼─┼─┼─┼─┤ > │0│0│0│0│0│0│ > └─┴─┴─┴─┴─┴─┘ > ]AC12B=:6 2$<'0' > ┌─┬─┐ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > └─┴─┘ > ]AC12=:3 4$<'0' > ┌─┬─┬─┬─┐ > │0│0│0│0│ > ├─┼─┼─┼─┤ > │0│0│0│0│ > ├─┼─┼─┼─┤ > │0│0│0│0│ > └─┴─┴─┴─┘ > ]AC5A=:5$<'0' > ┌─┬─┬─┬─┬─┐ > │0│0│0│0│0│ > └─┴─┴─┴─┴─┘ > > > > ]AC12A=:2 6$<'0' > ┌─┬─┬─┬─┬─┬─┐ > │0│0│0│0│0│0│ > ├─┼─┼─┼─┼─┼─┤ > │0│0│0│0│0│0│ > └─┴─┴─┴─┴─┴─┘ > ]AC12B=:6 2$<'0' > ┌─┬─┐ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > ├─┼─┤ > │0│0│ > └─┴─┘ > ]AC12=:3 4$<'0' > ┌─┬─┬─┬─┐ > │0│0│0│0│ > ├─┼─┼─┼─┤ > │0│0│0│0│ > ├─┼─┼─┼─┤ > │0│0│0│0│ > └─┴─┴─┴─┘ > ]AC5A=:5$<'0' > ┌─┬─┬─┬─┬─┐ > │0│0│0│0│0│ > └─┴─┴─┴─┴─┘ > > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of bill lam > Sent: Thursday, October 02, 2014 8:15 PM > To: Programming forum > Subject: Re: [Jprogramming] Protect the Almond Cookies > > rank conjunction is difficult to understand even for adult. > IMO 2 6$<'0' is better, > > 2 6$<'0' > ┌─┬─┬─┬─┬─┬─┐ > │0│0│0│0│0│0│ > ├─┼─┼─┼─┼─┼─┤ > │0│0│0│0│0│0│ > └─┴─┴─┴─┴─┴─┘ > > On Oct 2, 2014 8:10 PM, "Linda Alvord" <[email protected]> wrote: > >> Suppose you want to start a little business to sell ancy Almond Cookies. >> You want to be able to provide boxes of cookies for any order up to 12 >> cookies. Createe a way to show all the box designs you will need for your >> cookies. Orders may be from 1 to 12 cookies. Also include a way to have >> the computer generate a count of the different shapes of boxes you will >> need. Show a cookie in each box. Sinple J please. >> >> ]AC12A=:(<"0)2 6$'0' >> --T-T-T-T-T-┐ >> │0│0│0│0│0│0│ >> +-+-+-+-+-+-+ >> │0│0│0│0│0│0│ >> L-+-+-+-+-+-- >> ]AC12B=:<"0|.6 2$'0' >> --T-┐ >> │0│0│ >> +-+-+ >> │0│0│ >> +-+-+ >> │0│0│ >> +-+-+ >> │0│0│ >> +-+-+ >> │0│0│ >> +-+-+ >> │0│0│ >> L-+-- >> ]AC12C=:(<"0)3 4$'0' >> --T-T-T-┐ >> │0│0│0│0│ >> +-+-+-+-+ >> │0│0│0│0│ >> +-+-+-+-+ >> │0│0│0│0│ >> L-+-+-+-- >> ]AC5D=:(<"0)5$'0' >> --T-T-T-T-┐ >> │0│0│0│0│0│ >> L-+-+-+-+-- >> >> Packages A and B are considered the same >> >> Packages A and B are different. >> >> >> >> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
