Cube Prism Widget
Show a rectangular prism made of unit cubes, a partly filled box or a plain prism with labelled sides, drawn exactly from its side lengths. Students count, slice, turn and build prisms to find volume.
A cube prism is a box made of unit cubes, the picture nearly every Grade 5 volume lesson starts from. You give the side lengths and Berdee draws it: a 4 × 3 × 5 prism always shows exactly 4 cubes across, 3 deep and 5 up. The front faces the student, and the top and the right side slant back.
You can show every cube, a partly filled box that leaves the rest to reason about, or a plain prism with labelled sides. You can pick out a layer, mark a cut through a figure of two prisms, and rest a prism on another face. Students can also build a prism to a volume you choose.
For flat cube towers and trains in kindergarten, use connecting cubes. For an expression like 4 × 3 × 5, pair the prism with a number sentence.
Select the widget on the canvas and click the floating ⚙ Configure button to set it up. The dialog asks things in order:
- What students do: pick one of the four modes below.
- The figure: one prism, two prisms, or a prism with a box taken out, and the side lengths. (In Build: What students build.)
- What students see: labels, a highlighted layer, the base, the colors.
- Students can: whether they can turn the prism or peel its layers.
- The question: an optional question students answer on the widget's own number keys.
The description for screen readers is under More options at the bottom.
Four modes
Each mode in What students do is tagged Graded or Not graded.
| Mode | What students do | Tag |
|---|---|---|
| Show: all cubes | See a prism with every cube drawn, and count them. | Not graded, or Graded with a question |
| Show: partly filled | See a box with cubes on the floor and one column, and work out how many fill it. | Not graded, or Graded with a question |
| Show: no cubes | See a plain prism with its side lengths labelled. | Not graded, or Graded with a question |
| Build | Build a prism from a base and layers, then tap Done. | Graded |
A Show mode with no question never counts toward a score. Its Scoring section stays in place, marked Not graded, and tells you to pick a question or choose Build.
The figure
- Side lengths: the length (across), the width (front to back) and the height, in whole cubes from 1 to 12. One plain prism in Show: no cubes can go to 100; past 12 it's drawn shorter than it is, and the labels still show the real lengths.
- Figure:
- One prism.
- Two prisms joined: set the second prism's sides, then tap where it goes (On its right, On its left, In front, Behind, On top) and slide it along with Cubes right, Cubes back and Cubes up. A low prism in front of a tall one makes an L; one on top of the end of another makes a step. The second prism must touch the first without sitting inside it, and some of each prism has to show: one tucked wholly behind a bigger one would be hidden.
- One prism with a box taken out: set the box's sides and where it starts. The box's cubes disappear and a faint dashed outline shows where the prism's corner was. This is "10 × 8 × 3 take away 6 × 4 × 3". The box has to reach the front, the top or the right side of the prism, or the picture would look whole.
- Partly filled shows (Show: partly filled):
- The floor and a column: cubes cover the floor, and one column in the back left corner shows how tall the box is.
- Rows along the floor and a column: one row along the back, one along the left, and the column. Harder, because the floor has to be imagined too.
- The floor only: one layer with no box around it, for "what could the box hold?".
What students see
- Labels: for each side, None, Its length, a ? or Your own text, on the Front edge, the Opposite edge or Both edges. Put the same length on both edges to see who multiplies it twice.
- Unit: written after each length (
6 ft). Pick units, cm, in, ft or yd, type your own word, or leave it empty for a bare6. - Highlight: one flat layer, one slice front to back, or one slice side to side, and which one. It takes the highlight color and a thicker outline. A plain prism with a side longer than 12 isn't drawn to scale, so it shows no highlight. The same 4 × 6 × 5 prism reads as 5 layers of 24, 6 slices of 20 or 4 slices of 30.
- Resting on: which face is down. Any face can be the base.
- Show the base: Shade it, or Shade it and draw its grid underneath, which lifts the prism off its footprint.
- Cut line (two prisms): a red line with scissors marks where the two prisms meet. Give both prisms the same color and leave the cut line off when students should decide where to cut.
- Cube color, Second prism and Highlight color: from a fixed set. An activity's theme never recolors the cubes. The second prism also carries dots, so color is never the only way to tell the two apart.
Students can
- Turn it: a Turn button rests the prism on its next face. The cubes stay the same; the layers change.
- Peel the layers: a Peel button lifts the layers off one at a time and counts them ("1 layer of 12, 2 layers of 12…"), and Put back joins them again. With reduced motion on, the layers jump apart instead of animating. A plain prism with a side longer than 12 can't be peeled, because its picture has fewer layers than it does.
Neither button counts as an attempt. Both are off when the question is Cubes in one layer or Number of layers: turning would change the layers, and peeling counts them aloud.
The question
Set Ask to have students answer on the widget's own number keys, so a tablet's keyboard never opens:
- The volume
- Cubes in one layer
- Number of layers
- One side length (pick which side, and set that side's label to ?). With the cubes drawn, this needs one prism; for a figure of two prisms use Show: no cubes.
A plain figure's volume has to come from its labels, so every side needs a length (a side two prisms share exactly needs it once).
You never type the answer. Berdee works it out from the figure, so the answer can't disagree with the drawing. The number keys type up to 99,999; a figure whose answer is longer can't be published with that question. With a slice highlighted, "one layer" means that slice.
The question itself ("What is the volume?") is printed above the number keys, so you don't need a separate text widget for it. Students type a number and tap Done. Each Done is one attempt; typing and erasing are not. A wrong answer stays in the box so they can fix it.
Build
In Build, students make a prism and tap Done to check it.
- What students build:
- A volume: any prism with that many cubes is right. The panel says how many different prisms have that volume.
- Side lengths, turned any way: the three sides must match, whichever face is down.
- Side lengths, standing this way up: the length, width and height must each match.
- A base and a number of layers: the right rectangle, either way round, with the right number of layers.
- Find different prisms (a volume only): each right prism joins a list beside the drawing. The same prism turned another way is refused ("You already have that one."), because 2 × 3 × 4 and 4 × 3 × 2 are the same prism resting on different faces. Set How many to find.
- Students build with:
- A base grid and layers: tapping a square makes the base the rectangle from the near left corner to that square, so a 4 × 3 base is one tap. + Add a layer and − Take off a layer stack copies of it. Students can also drag across the grid, and drag the drawing up or down to add or take off layers.
- + and − buttons: one pair each for the length, the width and the height.
- Largest side: the longest side a student can make (1 to 12), and the size of the base grid.
What to build ("Build a prism of 24 cubes") stays on screen beside Done. A wrong Done keeps what the student built. Taps on the grid and the layer buttons are never attempts; only Done is.
Worked example: build every prism of 24
- Add a Cube Prism and open ⚙ Configure.
- Under What students do, choose Build.
- Under What students build, keep A volume and set Volume to build to
24. - Set Largest side to
12. The panel now says 5 different prisms have 24 cubes: 1 × 2 × 12, 1 × 3 × 8, 1 × 4 × 6, 2 × 2 × 6 and 2 × 3 × 4. - Turn on Find different prisms and set How many to find to
3. - Add a text widget above it: "Build 3 different prisms with 24 cubes."
A student who builds 2 × 3 × 4, then 4 × 3 × 2, hears "You already have that one." and has to find a prism with different sides.
What you see on the attempt page
Each answer gets one line:
Volume: 60 ✓Volume: first 12 (cubes in one layer), then 60 ✓Volume: 36 (cubes you can see) · not yetBuilt 2 × 3 × 4 = 24 ✓ · target 24, with a small picture of the prismFound 3 of 3: 2 × 3 × 4, 2 × 2 × 6, 1 × 4 × 6 ✓
The words in brackets name a wrong answer Berdee recognises from the figure: the cubes you can see, the cubes in one layer, the number of layers, the side lengths added, or a side used twice.
Accessibility
- A screen reader hears a description of the figure: "A prism made of cubes, 4 cubes long, 3 cubes wide and 5 cubes tall. The second layer from the bottom is gold." It never says the volume, and it leaves out whatever the question asks: a side students must find is "a side marked with a question mark". If you write your own description under More options and it contains the answer, publishing is blocked until you take the number out.
- With the keyboard, the up and down arrow keys step through the layers of a prism of cubes ("Layer 2 of 5: 4 cubes by 3 cubes"). When the number of layers is the question, each step says only "A layer: 4 cubes by 3 cubes." and then "No more layers.", so a student counts the layers by ear and is never told how many. A partly filled box works the same way up its column of cubes ("A cube in the column.").
- In Build, Tab reaches the base grid, the layer buttons and Done. On the grid, the arrow keys move and Enter sets the corner of the base. On the drawing, + adds a layer and − takes one off.
- Every change is announced ("Base 4 by 3. 2 layers."), and so is the result.
- Right and wrong show a ✓ or a × with words, never color alone.
Behaviors
The cube prism adds three events: On Prism Change (a student changes the prism they're building), On Done (each Done tap) and On Turn. See events, actions and conditions.
Its properties include Length, Width, Height, Volume, Number of layers, Cubes in one layer, Answer and Prisms found, and its methods include Highlight a layer and Build a prism for a narrated walkthrough. See widget properties and methods.
Size
Cubes need to be big enough to count, especially the ones going back. The dialog warns when they get small and publishing is blocked when they're too small to tell apart. At 600 × 500 beside a column of text, a 4 × 3 × 3 prism leaves room to count every cube, and a 4 × 3 × 5 one already warns; make the widget bigger or the sides shorter when it does.
In Build with + and − buttons, keep the widget at least 740 wide so the Length, Width and Height names fit beside their buttons. With a large Largest side, the base grid's squares get small for a tap, so choose + and − buttons instead.
Try it
Follow the Find the volume of a box by counting cubes tutorial to build a two-scene activity: students count a 4 × 3 × 3 box layer by layer, then find every box that holds 24 cubes.