An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Multiplying and Dividing Fractions — Elementary Mathematics</title>
<link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render">
<style>.screen .blanks .line{gap:14px}.screen input.box{min-width:110px}.screen .blanks .bline svg.m{zoom:1.5}.band .prompt svg.m{zoom:1.25}</style></head><body>
<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
'use strict';
const CHAPTER={number:7,title:'Multiplying and Dividing Fractions',minutes:12,language:'en', next: '../ch08/' };
const FM_A=COL.whole,FM_B=COL.nat;
const fmText=(p,s,x,y,t=0,size=32,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
const fmMath=(p,s,x,y,t=0,size=48,col=COL.chalk,anchor='middle')=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
function fmTitle(p,s,sub=''){fmText(p,s,100,118,.1,43);if(sub)fmText(p,sub,100,173,.2,27,COL.dim);}
// Each outlined unit has exact width w; the cells do not change their unit size when moved.
function fmBar(p,x,y,w,d,n,col=FM_A,t=.2,h=80){const g=G(p,{x,y,o:0}),cells=[];mk('rect',{width:w,height:h,fill:COL.faint,'fill-opacity':.15},g);for(let i=0;i<n;i++){const e=G(g,{x:i*w/d});mk('rect',{width:w/d,height:h,fill:col,'fill-opacity':.65},e);cells.push(e);}for(let i=1;i<d;i++)path(g,`M${i*w/d} 0V${h}`,{stroke:COL.chalk,'stroke-width':2});mk('rect',{width:w,height:h,fill:'none',stroke:COL.chalk,'stroke-width':3},g);show(g,t);return {g,cells,w,d,h};}
function fmPieces(p,n,d,x,y,w,col,t=.2,h=80){return Array.from({length:n},(_,i)=>{const e=G(p,{x:x+i*w/d,y,o:0});mk('rect',{width:w/d,height:h,fill:col,'fill-opacity':.7,stroke:COL.chalk,'stroke-width':2},e);show(e,t+i*.035);return e;});}
// One rectangle = ONE whole; overlap cell area is exactly 1/(columns*rows).
function fmArea(p,{x=220,y=265,w=620,h=360,cols=4,rows=3,a=3,b=2,t=.2,vertical=t,horizontal=t,select=t}={}){
const g=G(p,{x,y,o:0});mk('rect',{width:w,height:h,fill:COL.faint,'fill-opacity':.12},g);
const blue=mk('rect',{width:w*a/cols,height:h,fill:FM_A,'fill-opacity':.48},g);
const picked=G(g,{y:h-h*b/rows,o:0});mk('rect',{width:w*a/cols,height:h*b/rows,fill:COL.task,'fill-opacity':.85},picked);
const vs=[],hs=[];for(let i=1;i<cols;i++)vs.push(path(g,`M${i*w/cols} 0V${h}`,{stroke:COL.chalk,'stroke-width':2},{o:0}));for(let i=1;i<rows;i++)hs.push(path(g,`M0 ${i*h/rows}H${w}`,{stroke:COL.chalk,'stroke-width':2},{o:0}));
mk('rect',{width:w,height:h,fill:'none',stroke:COL.chalk,'stroke-width':3},g);show(g,t);vs.forEach(e=>show(e,vertical));hs.forEach(e=>show(e,horizontal));show(picked,select+1.4,.6);
const selector=G(g,{y:h-h*b/rows,o:0});mk('rect',{width:w*a/cols,height:h*b/rows,fill:'none',stroke:FM_B,'stroke-width':5,'stroke-dasharray':'12 8'},selector);show(selector,select,.2);[selector,picked].forEach(e=>tw(e,{y:0},select+.2,1.2,io));return {g,blue,picked,selector,vs,hs};
}
function fmPair(p,a,b,x,y,label,t=.2){const g=G(p,{o:0});mk('rect',{x,y,width:330,height:145,rx:18,fill:COL.board,stroke:COL.dim,'stroke-width':2},g);T(g,label,{x:x+165,y:y+38,size:27,anchor:'middle',fill:COL.dim});M(g,[a,' ↔ ',b],{x:x+165,y:y+103,size:48,anchor:'middle'});show(g,t);return {el:g,box:[x,y,330,145],label:label};}
function fmGrouping(p,n,per,m,{x=350,y=290,w=260,d=4,gy=550,gxs=[310,770,1190],h=85}={}){
for(let i=0;i<Math.ceil(n/d);i++)fmBar(p,x+i*w,y,w,d,0,FM_A,.2,h);const es=fmPieces(p,n,d,x,y,w,FM_A,.3,h);
fmText(p,'1 unit',x+w/2,y-25,.2,28,COL.dim,'middle');if(n>d)fmText(p,'1 unit',x+w*1.5,y-25,.2,28,COL.dim,'middle');
for(let j=0;j<Math.ceil(n/per);j++){const gx=gxs[j];const g=G(p,{o:0});for(let i=0;i<per;i++)mk('rect',{x:gx+i*w/d,y:gy,width:w/d,height:h,fill:'none',stroke:FM_B,'stroke-width':3},g);show(g,m.group);fmText(p,`group ${j+1}`,gx+per*w/d/2,gy+h+48,m.group,28,FM_B,'middle');}
es.forEach((e,i)=>tw(e,{x:gxs[Math.floor(i/per)]+(i%per)*w/d,y:gy},m.move+Math.floor(i/per)*.6,1.3,io));return es;
}
const BEATS=[
['intro','Multiply and divide',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 1 · The Number System · Chapter 7',{x:800,y:250,size:28,fill:COL.dim,anchor:'middle'});T(g,'Multiplying and',{x:800,y:365,size:82,weight:600,anchor:'middle'});T(g,'Dividing Fractions',{x:800,y:465,size:82,weight:600,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);fmBar(g,580,520,440,4,3,FM_A,.5,80);const s=fmText(scene,'Part of an amount · Number of groups',800,735,m('sub'),34,COL.dim,'middle');hide(g,D-.8,.7);hide(s,D-.8,.7);}],
['of','A fraction of a fraction',m=>{const p=panel(0);fmTitle(p,'Two thirds OF three fourths','One outlined rectangle = one whole unit');const a=fmArea(p,{t:.2,vertical:m('blue'),horizontal:m('split'),select:m('take')});put(a.blue,{o:0});show(a.blue,m('blue'));fmMath(p,[F('3','4'),' of the whole'],1170,315,m('blue'),45,FM_A);fmText(p,'Take 2 of the 3 rows',1030,425,m('take'),32,FM_B);fmText(p,'inside the blue amount',1030,468,m('take'),28,COL.dim);fmText(p,'6 selected / 12 in ONE whole',1040,570,m('count'),29,COL.task);fmMath(p,[F('2','3'),' × ',F('3','4'),' = ',F('6','12'),' = ',F('1','2')],800,745,m('result'),61);}],
['multiply','Why top × top, bottom × bottom',m=>{const p=panel(0);fmTitle(p,'Three fifths × two sevenths','Different denominators work: split in both directions.');const a=fmArea(p,{cols:5,rows:7,a:3,b:2,vertical:m('vertical'),horizontal:m('horizontal'),select:m('horizontal',5.6)});put(a.blue,{o:0});show(a.blue,m('vertical'));fmText(p,'5 columns × 7 rows',1030,315,m('horizontal'),35,COL.dim);fmText(p,'35 equal cells in ONE whole',1030,365,m('cells'),30,COL.dim);fmText(p,'3 columns × 2 rows',1030,495,m('cells',4.3),35,COL.task);fmText(p,'6 selected cells',1030,545,m('cells',5.8),30,COL.task);fmMath(p,[F('3','5'),' × ',F('2','7'),' = ',F('3 × 2','5 × 7'),' = ',F('6','35')],800,755,m('rule'),60);fmText(p,'No matching denominators needed: we split the pieces smaller.',800,845,m('rule',10.2),30,COL.dim,'middle');}],
['q1','Quick check',()=>{const p=panel(0);fmTitle(p,'Choose the result: two thirds of three fourths','Each outlined rectangle = one whole. Blue = three fourths.');S.fmAreas=[[3,1],[3,2],[4,2]].map(([c,r],i)=>{const x=130+i*480,y=250,w=360,h=240,g=G(p);mk('rect',{x,y,width:w,height:h,fill:COL.faint,'fill-opacity':.12},g);mk('rect',{x,y,width:w*3/4,height:h,fill:FM_A,'fill-opacity':.48},g);mk('rect',{x,y,width:w*c/4,height:h*r/3,fill:COL.task,'fill-opacity':.85},g);for(let k=1;k<4;k++)path(g,`M${x+k*w/4} ${y}V${y+h}`,{stroke:COL.chalk,'stroke-width':2});for(let k=1;k<3;k++)path(g,`M${x} ${y+k*h/3}H${x+w}`,{stroke:COL.chalk,'stroke-width':2});mk('rect',{x,y,width:w,height:h,fill:'none',stroke:COL.chalk,'stroke-width':3},g);fmMath(g,[F(String(c*r),'12')],x+w/2,585,.2,56);return {el:g,box:[x-12,235,w+24,380],label:`${c*r} twelfths`};});},{ask:done=>quiz(BAND,[{id:'c-area',prompt:'Which picture takes TWO of the THREE rows of the blue amount?',build:pickEls(S.fmAreas,1,'Six twelfths equals one half: two selected rows each have three twelfth-sized cells.',i=>i===0?'Three twelfths is only one of the three rows of three fourths.':'Eight twelfths is two thirds of the entire whole. Take two thirds of the blue three-fourths amount.',()=>pulseFx(S.fmAreas[1].el,1.06))}],done)}],
['scale','Half a recipe',m=>{const p=panel(0);fmTitle(p,'Half of a recipe using ¾ cup of yogurt','Each outline = ONE cup');const a=fmBar(p,250,290,800,4,3,FM_A,.2,110);for(let i=1;i<8;i+=2)draw(path(a.g,`M${i*100} 0V110`,{stroke:COL.task,'stroke-width':2,'stroke-dasharray':'6 5'},{d:0}),m('split'),.7);fmBar(p,250,535,800,8,0,FM_A,.2,110);a.cells.forEach(e=>hide(e,m('take'),.1));const es=fmPieces(p,6,8,250,290,800,FM_A,m('take'),110);es.slice(0,3).forEach(e=>tw(e,{y:535},m('take',.3),1.2));es.slice(3).forEach((e,i)=>tw(e,{x:250+i*100},m('take',1.8),1));const before=fmText(p,'original recipe',1190,355,.2,30,FM_A,'middle');hide(before,m('take'),.3);fmText(p,'other half stays here',1210,355,m('take',2.6),30,FM_A,'middle');fmText(p,'half recipe',1190,600,m('take'),30,COL.task,'middle');fmMath(p,[F('1','2'),' × ',F('3','4'),' = ',F('3','8')],800,750,m('result'),62);fmText(p,'A multiplier between 0 and 1 shrinks a positive amount.',800,832,m('smaller'),30,COL.dim,'middle');}],
['cancel','Cross-cancel factors',m=>{const p=panel(0);fmTitle(p,'Five sixths × nine tenths','Cancel a TOP factor with a BOTTOM factor.');fmMath(p,[F('5','6'),' × ',F('9','10')],300,380,.2,70);// Product built digit by digit so each cancel slash and new value sits on its own digit.
const pr=G(p,{o:0});show(pr,m('combine'));const NY=345,DY=445,dig=(s,x,y)=>M(pr,[s],{x,y,size:80});[['5',730],['×',800],['9',870]].forEach(([s,x])=>dig(s,x,NY));[['6',730],['×',800],['10',880]].forEach(([s,x])=>dig(s,x,DY));path(pr,`M680 ${NY+27}H935`,{stroke:COL.chalk,'stroke-width':4,'stroke-linecap':'round'});fmMath(p,[F('45','60')],1290,375,m('combine'),75);
const cut=(x,y,hw,v,vy,t,tv)=>{draw(path(p,`M${x-hw} ${y+6}L${x+hw} ${y-56}`,{stroke:COL.task,'stroke-width':5,'stroke-linecap':'round'},{d:0}),t,.4);fmMath(p,[v],x,vy,tv,44,COL.task);};
cut(730,NY,22,'1',NY-78,m('five'),m('five',2.5));cut(880,DY,38,'2',DY+62,m('five',.4),m('five',2.5));cut(870,NY,22,'3',NY-78,m('three'),m('three',2));cut(730,DY,22,'2',DY+62,m('three',.4),m('three',2.8));fmMath(p,[F('1 × 3','2 × 2'),' = ',F('3','4')],800,660,m('result'),68);fmText(p,'Divide the total numerator AND denominator by the same factor.',800,790,m('why'),31,COL.dim,'middle');}],
['q2','Quick check',()=>{const p=panel(0);fmTitle(p,'Which pair can cross-cancel?','A common factor must appear on TOP and BOTTOM.');fmMath(p,[F('4','9'),' × ',F('3','8')],800,285,.2,65);S.fmPairs=[fmPair(p,'4','3',160,410,'A'),fmPair(p,'9','8',635,410,'B'),fmPair(p,'3','9',1110,410,'C')];},{ask:done=>quiz(BAND,[{id:'c-cancel',prompt:'Which pair of numbers can be cross-canceled?',build:pickEls(S.fmPairs,2,'3 on top and 9 on bottom share factor 3. Divide both by 3; 4 and 8 can also reduce by 4.',i=>i===0?'Both are numerators. Canceling them would change the product, and 4 and 3 have no common factor above 1.':'Both are denominators. Cross-cancel requires a numerator and denominator.',()=>pulseFx(S.fmPairs[2].el,1.04))}],done)}],
['groups','Division counts groups',m=>{const p=panel(0);fmTitle(p,'1½ meters ÷ ¾ meter per piece','Blue = available ribbon · Coral outline = size of each group');fmGrouping(p,6,3,{group:m('group'),move:m('move')});fmMath(p,['1 ',F('1','2'),' ÷ ',F('3','4'),' = 2'],1100,320,m('count'),57);fmText(p,'six quarter-meter pieces',1090,235,m('units'),31,FM_A,'middle');fmText(p,'2 groups · each group is ¾ meter',800,780,m('count'),37,COL.task,'middle');}],
['partial','A fraction of a group',m=>{const p=panel(0);fmTitle(p,'1¼ liters ÷ ½ liter per group','Keep the quarter-liter pieces the same size when moving.');fmGrouping(p,5,2,{group:m('groups'),move:m('move')},{gxs:[260,665,1070]});fmText(p,'five quarter-liter pieces',1090,235,m('quarters'),30,FM_A,'middle');fmText(p,'½ of a GROUP',1135,725,m('partial'),34,COL.task,'middle');fmText(p,'¼ liter ÷ ½ liter = ½ group',800,790,m('partial',2),33,COL.dim,'middle');fmMath(p,['1 ',F('1','4'),' ÷ ',F('1','2'),' = 2 ',F('1','2')],1120,320,m('answer'),52);}],
['q3','Quick check',()=>{const p=panel(0);fmTitle(p,'Choose the groups for 1½ ÷ ½','Dashed outline = 1 unit. Each picture holds 1½ units in groups.');S.fmGroups=[{n:2,d:4,k:3,label:'A'},{n:3,d:2,k:1,label:'B'},{n:6,d:4,k:1,label:'C'}].map((v,j)=>{const x=140+j*480,g=G(p),w=360;for(let i=0;i<v.n;i++){const y=265+i*52;path(g,`M${x} ${y}h${w}v40h-${w}Z`,{fill:'none',stroke:COL.dim,'stroke-width':2,'stroke-dasharray':'7 6'});mk('rect',{x,y,width:w*v.k/v.d,height:40,fill:FM_A,'fill-opacity':.65,stroke:FM_B,'stroke-width':3},g);}fmText(g,v.label,x+w/2,615,.2,40,COL.chalk,'middle');return {el:g,box:[x-15,250,390,390],label:v.label};});},{ask:done=>quiz(BAND,[{id:'c-groups',prompt:'The divisor is ONE HALF. Which picture uses half-sized groups?',build:pickEls(S.fmGroups,1,'Three half-sized groups fit into one and one half. The quotient is 3.',i=>i===0?'A uses three-fourths-sized groups. Match the group size to the divisor, one half.':'C uses quarter-sized groups. Two of those quarters make one half-sized group.',()=>pulseFx(S.fmGroups[1].el,1.05))}],done)}],
['reciprocal','Make the group size ONE',m=>{const p=panel(0);fmTitle(p,'Two thirds ÷ four fifths','Scale BOTH lengths by the same factor: group count stays the same.');const x=200,w=600;function row(y,n,d,col){const g=G(p,{x,y});mk('rect',{width:w,height:90,fill:'none',stroke:COL.dim,'stroke-width':2,'stroke-dasharray':'7 6'},g);const r=mk('rect',{width:w*n/d,height:90,fill:col,'fill-opacity':.65,stroke:col,'stroke-width':3},g);return r;}const a=row(310,4,5,FM_B),b=row(535,2,3,FM_A);const swap=(a,b,x,y,t0,t1,col)=>{const e=fmText(p,a,x,y,t0,37,col);hide(e,t1,.3);fmText(p,b,x,y,t1+.3,37,col);};swap('before: divisor 4/5','after: 1 (one group)',1060,370,m('divisor'),m('stretch',3.3),FM_B);swap('before: amount 2/3','after: 5/6',1060,595,.2,m('first',3),FM_A);fmText(p,'× 5/4',500,250,m('stretch'),40,COL.task,'middle');tw(a,{a_width:600},m('stretch'),2,io);fmMath(p,[F('4','5'),' × ',F('5','4'),' = 1'],1060,465,m('stretch',3.5),54,FM_B,'start');tw(b,{a_width:500},m('first'),2,io);fmMath(p,[F('2','3'),' × ',F('5','4'),' = ',F('5','6')],1060,690,m('first',3),54,FM_A,'start');fmText(p,'new unit = ONE divisor-sized group',500,720,m('quotient'),30,COL.dim,'middle');fmMath(p,[F('2','3'),' ÷ ',F('4','5'),' = ',F('5','6')],880,830,m('quotient',6.6),56,COL.task,'end');fmText(p,'of a group',900,830,m('quotient',6.6),40,COL.task);}],
['rule','Reciprocal means product ONE',m=>{const p=panel(0);fmTitle(p,'Keep · Multiply · Reciprocal','The divisor must be nonzero.');fmMath(p,[F('4','5'),' × ',F('5','4'),' = ',F('20','20'),' = 1'],800,300,m('one'),64);fmMath(p,[F('2','3'),' ÷ ',F('4','5')],490,500,.2,75);fmText(p,'keep',380,595,m('flip'),32,FM_A);fmText(p,'flip second',570,595,m('flip'),32,FM_B);fmMath(p,['= ',F('2','3'),' × ',F('5','4'),' = ',F('5','6')],1120,500,m('multiply'),62);fmText(p,'4 = 4/1 → reciprocal 1/4',800,720,m('multiply',7.6),34,COL.dim,'middle');fmText(p,'Zero has no reciprocal. Division by zero is undefined.',800,815,m('zero'),33,COL.task,'middle');}],
['mixed','Convert mixed numbers FIRST',m=>{const p=panel(0);fmTitle(p,'One and one half ÷ one and one eighth');fmMath(p,['1 ',F('1','2'),' ÷ 1 ',F('1','8')],800,270,.2,70);fmMath(p,['= ',F('3','2'),' ÷ ',F('9','8')],800,420,m('convert'),65);fmMath(p,['= ',F('3','2'),' × ',F('8','9')],800,555,m('reciprocal'),65);fmText(p,'2 with 8 → 1 with 4 · 3 with 9 → 1 with 3',800,655,m('cancel'),30,COL.task,'middle');fmMath(p,['= ',F('1 × 4','1 × 3'),' = ',F('4','3'),' = 1 ',F('1','3')],800,770,m('answer'),60);fmText(p,'A mixed number means whole part PLUS fractional part.',800,850,m('answer',5),28,COL.dim,'middle');}],
['compare','The operation changes the question',m=>{const p=panel(0);fmTitle(p,'Keep the first fraction. Flip the second for division.');fmMath(p,[F('3','4'),' ÷ ',F('1','2')],400,330,.2,65);fmMath(p,['= ',F('3','4'),' × ',F('2','1')],1110,330,m('second'),65);fmText(p,'first amount stays',330,430,m('first'),32,FM_A);fmText(p,'second becomes reciprocal',950,430,m('second'),32,FM_B);fmMath(p,[F('3','4'),' × ',F('1','2'),' = ',F('3','8')],430,610,m('size'),58);fmText(p,'half OF the amount',430,705,m('size'),31,FM_B,'middle');fmMath(p,[F('3','4'),' ÷ ',F('1','2'),' = 1 ',F('1','2')],1140,610,m('size',3),58);fmText(p,'number OF half-sized groups',1140,705,m('size',3),31,FM_B,'middle');fmText(p,'First decide: part of an amount, or number of groups?',800,835,m('size',7),32,COL.task,'middle');}],
['wrap','Summary',m=>{const p=panel(0);fmTitle(p,'Four ideas to keep');[['Multiply top × top and bottom × bottom.','w1'],['Cross-cancel TOP and BOTTOM factors.','w2'],['Divide: multiply by the NONZERO divisor’s reciprocal.','w3'],['Mixed → improper first. Simplify at the end.','w4']].forEach(([s,k],i)=>{const g=G(p,{x:-16,y:300+i*150,o:0});mk('circle',{cx:290,cy:-13,r:30,fill:COL.task},g);T(g,String(i+1),{x:290,y:-1,size:34,fill:COL.board,anchor:'middle',weight:700});T(g,s,{x:355,size:38,weight:600});tw(g,{x:0,o:1},m(k),.6);});}],
['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-multiply',prompt:'Multiply. Give answers in lowest terms; equivalent mixed numbers are accepted.',build:blanks([
{parts:[F('2','5'),' × ',F('3','7'),' = ',{box:'6/35',lowest:true}],why:'Two times three is six; five times seven is thirty-five. No common factor remains.'},
{parts:[F('7','12'),' × ',F('6','7'),' = ',{box:'1/2',lowest:true}],why:'Cancel the sevens, and reduce six with twelve. The product is one half.'},
{parts:[F('3','8'),' × 4 = ',{box:'3/2',lowest:true}],why:'Write four as four over one. Twelve eighths simplifies to three halves, or one and one half.'}
])}],done,'Chapter practice · set 1 of 4')}],
['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-divide',prompt:'The divisors are nonzero. Use their reciprocals; simplify.',build:blanks([
{parts:['Reciprocal of ',F('7','9'),': ',{box:'9/7',lowest:true}],why:'Seven ninths times nine sevenths is one.'},
{parts:[F('5','6'),' ÷ ',F('2','3'),' = ',{box:'5/4',lowest:true}],why:'Five sixths times three halves is fifteen twelfths, or five fourths.'},
{parts:[F('3','5'),' ÷ 4 = ',{box:'3/20',lowest:true}],why:'The reciprocal of four is one fourth. Three fifths times one fourth is three twentieths.'}
])}],done,'Chapter practice · set 2 of 4')}],
['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-mixed',prompt:'Convert mixed numbers to improper fractions first. Give a simplified fraction or mixed number.',build:blanks([
{parts:['1 ',F('2','3'),' × 2 ',F('1','4'),' = ',{box:'15/4',lowest:true}],why:'Five thirds times nine fourths is forty-five twelfths, or fifteen fourths (three and three fourths).'},
{parts:['2 ',F('2','5'),' ÷ 1 ',F('1','2'),' = ',{box:'8/5',lowest:true}],why:'Twelve fifths times two thirds is twenty-four fifteenths, or eight fifths (one and three fifths).'}
])}],done,'Chapter practice · set 3 of 4')}],
['final4','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[
{id:'p-lengths',prompt:['A ',$m('2 ',F('3','4')),' meter ribbon is measured in ',$m(F('3','4')),' meter lengths. How many lengths is it, including a partial length?'],build:blanks([{parts:[{box:'11/3',lowest:true},' lengths'],why:'Eleven fourths divided by three fourths is eleven thirds. That is three complete lengths plus two thirds of another length.'}])},
{id:'p-sharing',prompt:['Five friends share ',$m(F('5','6')),' kilogram of trail mix equally. How much does each friend receive?'],build:blanks([{parts:[{box:'1/6',lowest:true},' kilogram each'],why:'Five sixths divided by five is five sixths times one fifth, which equals one sixth kilogram.'}])}
],done,'Chapter practice · set 4 of 4')}],
['finish','Finished',()=>panel(0),{ask:finishCard}]
].map(([id,title,run,extra])=>({id,title,run,...extra}));
boot();
</script></body></html>