try
]AC12B=:<"0|:6 2$'0'
+-+-+-+-+-+-+
|0|0|0|0|0|0|
+-+-+-+-+-+-+
|0|0|0|0|0|0|
+-+-+-+-+-+-+
R.E. Boss
> -----Original Message-----
> From: [email protected] [mailto:programming-
> [email protected]] On Behalf Of Linda Alvord
> Sent: donderdag 2 oktober 2014 14:10
> To: [email protected]
> Subject: [Jprogramming] Protect the Almond Cookies
>
> 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