Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

feat(math): add percent word problems

yzr2c18847b465f
diff --git a/site/index.html b/site/index.html
index 6b1c83d..bec0ca6 100644
--- a/site/index.html
+++ b/site/index.html
@@ -23,8 +23,8 @@
<a class="book-hotspot algebra-book" data-book="elementary-algebra" href="elementary-algebra/" aria-label="Open Elementary Algebra, 68 narrated chapters">
<span class="book-caption"><strong>Elementary Algebra <span aria-hidden="true">↗</span></strong><small>68 narrated chapters</small></span>
</a>
- <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 19 narrated chapters">
- <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>19 narrated chapters</small></span>
+ <a class="book-hotspot math-book" data-book="math-notebook" href="math-notebook/" aria-label="Open Elementary Mathematics, 20 narrated chapters">
+ <span class="book-caption"><strong>Elementary Mathematics <span aria-hidden="true">↗</span></strong><small>20 narrated chapters</small></span>
</a>
<span class="physics-pending">Physics · Coming soon</span>
</section>
diff --git a/site/lib/bookshelf.js b/site/lib/bookshelf.js
index 342273a..9074d1c 100644
--- a/site/lib/bookshelf.js
+++ b/site/lib/bookshelf.js
@@ -17,7 +17,7 @@
const books = [
{ id: 'elementary-algebra', key: 'progress', chapterBase: 'elementary-algebra/', chapters: 68 },
{ id: 'math-notebook', key: 'animebook:progress:' + new URL('math-notebook/', location.href).pathname,
- chapterBase: 'math-notebook/', chapters: 19 },
+ chapterBase: 'math-notebook/', chapters: 20 },
];
for (const book of books) {
const cover = document.querySelector(`[data-book="${book.id}"]`);
diff --git a/site/math-notebook/ch19/index.html b/site/math-notebook/ch19/index.html
index 329450d..10538a1 100644
--- a/site/math-notebook/ch19/index.html
+++ b/site/math-notebook/ch19/index.html
@@ -2,7 +2,7 @@
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Percent — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.band .prompt{font-size:27px}.screen .blanks .bline{gap:12px}.screen .blanks .box{width:8ch!important}.screen .blanks .why{font-size:21px}.screen .blanks .bline svg tspan{font-style:normal}</style></head><body>
<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
'use strict';
-const CHAPTER={number:19,title:'Percent',minutes:13,language:'en'};
+const CHAPTER={number:19,title:'Percent',minutes:13,language:'en', next: '../ch20/' };
// Fixed-area bars from ch06; hundredth cells from ch08. Blue always marks selected amount.
const pcText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
const pcMath=(p,s,x,y,t=0,size=52,col=COL.chalk)=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor:'middle',o:0});show(e,t);return e;};
@@ -27,16 +27,16 @@ const BEATS=[
['fraction','Simplify without changing area',m=>{const p=panel(0);pcTitle(p,'40% · forty of one hundred cells','The same forty original cells stay shaded.');S.pcForty=pcGrid(p,210,250,460,40,0,'forty');S.pcGroups=G(p,{o:0});for(let i=0;i<5;i++){const e=mk('rect',{x:210,y:250+i*92,width:460,height:92,fill:'none',stroke:COL.task,'stroke-width':4},S.pcGroups);e.dataset.groupCells='20';}show(S.pcGroups,m('groups'));pcMath(p,['40% = ',F('40','100')],1110,340,0,57,COL.whole);pcMath(p,[F('40 ÷ 20','100 ÷ 20'),' = ',F('2','5')],1110,515,m('simplify'),54);pcText(p,'Two of five equal groups',1110,650,m('simplify',2),32,COL.task,'middle');pcText(p,'Percent as fraction: number over 100, then simplify.',800,825,m('rule'),34,COL.dim,'middle');}],
['q1','Choose forty percent',()=>{const p=panel(0);pcTitle(p,'Each square is ONE whole','Same size · 100 equal cells in every square');S.pcChoices=pcGridChoices(p,[40,4,60]);},{ask:done=>quiz(BAND,[{id:'c-hundred',prompt:'Which picture shows 40% of one whole?',build:pickEls(S.pcChoices,0,'40% means forty of one hundred equal cells. Picture A fills four complete rows.',i=>i===1?'Four cells out of one hundred is 4%, not 40%. Forty needs four full rows.':'Sixty cells is 60%. For 40%, fill forty and leave sixty unfilled.')}],done)}],
['equivalent','Build an equivalent fraction',m=>{const p=panel(0);pcTitle(p,'Seven twentieths · same strip, smaller pieces');S.pcEquivalent=pcBar(p,220,290,1120,7,20);S.pcSubcuts=pcCuts(S.pcEquivalent,100,m('split'));pcText(p,'20 × 5 = 100 equal pieces',800,520,m('split',1),38,COL.task,'middle');pcMath(p,[F('7','20'),' = ',F('7 × 5','20 × 5'),' = ',F('35','100'),' = 35%'],800,680,m('result'),61,COL.whole);pcText(p,'Same blue area. Both fraction numbers get the same factor.',800,825,m('check'),32,COL.dim,'middle');}],
-['divide','Any fraction can use division',m=>{const p=panel(0);pcTitle(p,'Three eighths is exactly 37.5%','One strip = 1 whole · the half-hundredth is real');S.pcEighth=pcBar(p,220,290,1120,3,8);pcMath(p,[F('3','8'),' = 3 ÷ 8 = 0.375'],800,550,m('decimal'),58);pcMath(p,'0.375 × 100 = 37.5%',800,685,m('percent'),60,COL.whole);pcCuts(S.pcEighth,100,m('cuts'));pcText(p,'37 complete hundredths + ½ of the next',800,825,m('cuts',1),35,COL.task,'middle');}],
+['divide','Any fraction can use division',m=>{const p=panel(0);pcTitle(p,'Three eighths is exactly 37.5%','One strip = 1 whole · the half-hundredth is real');S.pcEighth=pcBar(p,220,290,1120,3,8);pcMath(p,[F('3','8'),' = 3 ÷ 8 = 0.375'],800,550,m('decimal'),58);pcMath(p,'0.375 × 100 = 37.5',800,685,m('percent'),60,COL.whole);pcText(p,'Percent form: 37.5%',800,760,m('percent',1),30,COL.whole,'middle');pcCuts(S.pcEighth,100,m('cuts'));pcText(p,'37 complete hundredths + ½ of the next',800,825,m('cuts',1),35,COL.task,'middle');}],
['decimal','Percent to decimal',m=>{const p=panel(0);pcTitle(p,'68% battery · the same charge in decimal form');S.pcBattery=pcBar(p,220,275,1120,68);pcMath(p,['68% = ',F('68','100')],420,550,m('fraction'),55);pcMath(p,'68 ÷ 100 = 0.68',1130,550,m('divide'),55,COL.whole);S.pcLeftDot=pcMovePoint(p,'068',3,1,700,720,m('divide'));pcText(p,'÷ 100 · two places LEFT',1060,720,m('divide'),31,COL.task);pcText(p,'The amount stays 68 hundredths of ONE whole.',800,835,m('same'),33,COL.dim,'middle');}],
['q2','Choose six percent',()=>{const p=panel(0);pcTitle(p,'Match 0.06 of one whole','One square = 1 · a partial cell must have its true area');S.pcChoices=pcGridChoices(p,[6,60,.6]);},{ask:done=>quiz(BAND,[{id:'c-decimal',prompt:'Which picture equals the decimal 0.06?',build:pickEls(S.pcChoices,0,'0.06 is six hundredths, so it equals 6%. Six of the hundred cells are filled.',i=>i===1?'Sixty hundredths is 0.60, or 60%. That is ten times the asked share.':'0.6% is six tenths of ONE hundredth cell. Its decimal is 0.006, ten times smaller than 0.06.')}],done)}],
-['back','Decimal to percent',m=>{const p=panel(0);pcTitle(p,'0.42 of one whole · forty-two hundredths');S.pcBack=pcBar(p,220,270,1120,42);pcMath(p,'0.42 × 100 = 42%',800,520,m('percent'),62,COL.whole);S.pcRightDot=pcMovePoint(p,'042',1,3,250,670,m('moves'));pcText(p,'× 100 · two places RIGHT',670,670,m('moves'),34,COL.task);pcText(p,'0.07 = 7% 1.2 = 120%',800,770,m('moves',3),40);pcText(p,'Decimal and percent are names for the same ratio.',800,845,m('meaning'),31,COL.dim,'middle');}],
+['back','Decimal to percent',m=>{const p=panel(0);pcTitle(p,'0.42 of one whole · forty-two hundredths');S.pcBack=pcBar(p,220,270,1120,42);pcMath(p,'0.42 × 100 = 42',800,520,m('percent'),62,COL.whole);pcText(p,'Percent form: 42%',800,585,m('percent',1),32,COL.whole,'middle');S.pcRightDot=pcMovePoint(p,'042',1,3,250,670,m('moves'));pcText(p,'× 100 · two places RIGHT',670,670,m('moves'),34,COL.task);pcText(p,'0.07 = 7% 1.2 = 120%',800,770,m('moves',3),40);pcText(p,'Decimal and percent are names for the same ratio.',800,845,m('meaning'),31,COL.dim,'middle');}],
['partial','A percent with a decimal point',m=>{const p=panel(0);pcTitle(p,'2.5% means two and a half hundredths','Top strip: one whole = 100%');S.pcSmall=pcBar(p,260,250,1000,0);tw(S.pcSmall.shade,{'a_width':25},m('fill'),1.5,io);const inset=G(p,{o:0});S.pcInset=pcBar(inset,260,505,600,2.5,3,0,135);show(inset,m('zoom'));pcText(p,'ENLARGED: first three 1% cells',560,475,m('zoom'),28,COL.task,'middle');pcText(p,'Each inset cell = 1% of the whole',560,700,m('zoom',1),29,COL.dim,'middle');pcMath(p,'2.5% = 0.025',1160,550,m('convert'),47,COL.whole);pcMath(p,[F('2.5','100'),' = ',F('25','1000'),' = ',F('1','40')],1160,700,m('convert',2),49);pcText(p,'Divide by 100 even when the percent has a decimal point.',800,835,m('convert',4),32,COL.dim,'middle');}],
['tiny','A tiny percent',m=>{const p=panel(0);pcTitle(p,'0.004% · keep the leading zeros');pcMath(p,'0.004% = 0.004 ÷ 100 = 0.00004',800,300,m('convert'),58,COL.whole);const g=G(p,{o:0});path(g,'M260 555H1260',{stroke:COL.chalk,'stroke-width':3});for(let i=0;i<=5;i++){path(g,`M${260+i*200} 540V570`,{stroke:COL.dim,'stroke-width':2});T(g,(i*.002).toFixed(3)+'%',{x:260+i*200,y:620,size:26,anchor:'middle'});}S.pcTinyDot=mk('circle',{cx:660,cy:555,r:13,fill:COL.whole},g);S.pcTinyDot.dataset.percent='.004';T(g,'0.004%',{x:660,y:505,size:34,fill:COL.whole,anchor:'middle'});show(g,m('scale'));pcText(p,'MAGNIFIED SCALE: 0% to 0.01% only',800,430,m('scale'),32,COL.task,'middle');pcMath(p,['0.00004 = ',F('1','25000')],800,735,m('fraction'),54);pcText(p,'Below 1% means below 0.01 of a whole.',800,835,m('fraction',2),34,COL.dim,'middle');}],
['beyond','More than one hundred percent',m=>{const p=panel(0);pcTitle(p,'160% · one whole plus sixty hundredths','Every full strip is the same reference whole.');S.pcFull=pcBar(p,150,280,600,100);S.pcExtra=pcBar(p,850,280,600,60,100,m('extra'));pcText(p,'100%',450,450,0,40,COL.whole,'middle');pcText(p,'60%',1150,450,m('extra'),40,COL.whole,'middle');pcMath(p,['160% = ',F('160','100'),' = ',F('8','5'),' = 1.6'],800,620,m('names'),62);pcText(p,'1.6 kilometers is 160% of a 1-kilometer reference.',800,770,m('context'),33,COL.task,'middle');pcText(p,'100% identifies the reference whole; it is not always a maximum.',800,840,m('context',2),30,COL.dim,'middle');}],
['q3','Choose one hundred sixty percent',()=>{const p=panel(0);pcTitle(p,'Reference: one full strip = 100%','All strips use the same length scale.');pcBar(p,620,205,180,100,100,0,90);S.pcChoices=[160,16,60].map((n,i)=>{const x=120+i*480,g=G(p);pcBar(g,x,400,180,Math.min(n,100),100,0,90);if(n>100)pcBar(g,x+200,400,180,n-100,100,0,90);pcText(g,String.fromCharCode(65+i),x+170,355,0,32,COL.dim,'middle');pcText(g,n/100+' wholes',x+170,590,0,33,COL.whole,'middle');g.dataset.percent=String(n);return {el:g,box:[x-20,310,410,330],label:n+' percent'};});},{ask:done=>quiz(BAND,[{id:'c-beyond',prompt:'Which picture represents 160% of the reference whole?',build:pickEls(S.pcChoices,0,'160% is 1.6 wholes: one complete strip plus sixty hundredths of another equal strip.',i=>i===1?'0.16 of a whole is 16%. Divide 160 by 100 to get 1.6, not 0.16.':'0.6 of a whole is only 60%. Include the complete first whole as well.')}],done)}],
['context','Observed shares',m=>{const p=panel(0);pcTitle(p,'9 of 12 seeds sprouted','One strip = all 12 seeds · blue = sprouted');S.pcSeeds=pcBar(p,200,280,1200,9,12);pcCuts(S.pcSeeds,4,m('groups'));pcMath(p,[F('9','12'),' = ',F('3','4'),' = ',F('75','100'),' = 75%'],800,565,m('hundred'),61,COL.whole);pcCuts(S.pcSeeds,100,m('hundred'));pcMath(p,[F('3','12'),' = ',F('1','4'),' = 25%'],800,710,m('rest'),53);pcText(p,'Sprouted 75% + not sprouted 25% = 100%',800,830,m('rest',2),37,COL.task,'middle');}],
-['rounding','Rounding a percent',m=>{const p=panel(0);pcTitle(p,'5 of 9 sketches use watercolors','Exact share: five ninths · round only the final percent');S.pcRound=pcBar(p,220,255,900,5,9);pcMath(p,[F('5','9'),' = 0.',OV('5')],1290,310,m('decimal'),55);pcMath(p,['0.',OV('5'),' × 100 = 55.',OV('5'),'%'],800,550,m('percent'),56);const guide=G(p,{o:0});path(guide,'M724 240V390',{stroke:COL.task,'stroke-width':3});T(guide,'56% guide',{x:900,y:425,size:30,fill:COL.task,anchor:'middle'});path(guide,'M900 395L724 375',{stroke:COL.task,'stroke-width':2});show(guide,m('round'));S.pcRoundGuide=guide;pcMath(p,'≈ 56% (nearest whole percent)',800,710,m('round'),53,COL.task);pcText(p,'Exact blue endpoint: 55.555…% · rounded guide: 56%',800,835,m('round',2),32,COL.dim,'middle');}],
+['rounding','Rounding a percent',m=>{const p=panel(0);pcTitle(p,'5 of 9 sketches use watercolors','Exact share: five ninths · round only the final percent');S.pcRound=pcBar(p,220,255,900,5,9);pcMath(p,[F('5','9'),' = 0.',OV('5')],1290,310,m('decimal'),55);pcMath(p,['0.',OV('5'),' × 100 = 55.',OV('5')],800,550,m('percent'),56);pcText(p,'Percent form: 55.555…%',800,625,m('percent',1),31,COL.whole,'middle');const guide=G(p,{o:0});path(guide,'M724 240V390',{stroke:COL.task,'stroke-width':3});T(guide,'56% guide',{x:900,y:425,size:30,fill:COL.task,anchor:'middle'});path(guide,'M900 395L724 375',{stroke:COL.task,'stroke-width':2});show(guide,m('round'));S.pcRoundGuide=guide;pcMath(p,'≈ 56% (nearest whole percent)',800,710,m('round'),53,COL.task);pcText(p,'Exact blue endpoint: 55.555…% · rounded guide: 56%',800,835,m('round',2),32,COL.dim,'middle');}],
['wrap','Four percent connections',m=>{const p=panel(0);pcTitle(p,'Three forms · one amount');[['Percent means per hundred. First identify ONE whole.','w1'],['Percent as a fraction: number over 100; simplify.','w2'],['Percent ÷ 100 = decimal. Decimal × 100 = percent number.','w3'],['Fraction: divide top by bottom. Round only when asked.','w4']].forEach(([s,key],i)=>{const g=G(p,{x:-16,y:285+i*145,o:0});mk('circle',{cx:130,cy:-10,r:26,fill:COL.task},g);T(g,String(i+1),{x:130,y:0,size:30,anchor:'middle',fill:COL.board});T(g,s,{x:195,size:31});tw(g,{x:0,o:1},m(key),.6);});}],
['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-from',prompt:'Convert. Fractions must be in lowest terms; decimals exact.',build:blanks([
{parts:['32% = ',{box:'8/25',lowest:true},' (fraction)'],why:'32/100 simplifies by dividing numerator and denominator by 4: 8/25.'},
diff --git a/site/math-notebook/ch20/audio/en/choose.mp3 b/site/math-notebook/ch20/audio/en/choose.mp3
new file mode 100644
index 0000000..e6047ba
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/choose.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/context.mp3 b/site/math-notebook/ch20/audio/en/context.mp3
new file mode 100644
index 0000000..33ad6ac
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/context.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/divide.mp3 b/site/math-notebook/ch20/audio/en/divide.mp3
new file mode 100644
index 0000000..78af713
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/divide.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/final1.mp3 b/site/math-notebook/ch20/audio/en/final1.mp3
new file mode 100644
index 0000000..f226356
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/final1.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/final2.mp3 b/site/math-notebook/ch20/audio/en/final2.mp3
new file mode 100644
index 0000000..ddc1d5f
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/final2.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/final3.mp3 b/site/math-notebook/ch20/audio/en/final3.mp3
new file mode 100644
index 0000000..aff826c
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/final3.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/finish.mp3 b/site/math-notebook/ch20/audio/en/finish.mp3
new file mode 100644
index 0000000..f232672
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/finish.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/intro.mp3 b/site/math-notebook/ch20/audio/en/intro.mp3
new file mode 100644
index 0000000..560414b
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/intro.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/multiply.mp3 b/site/math-notebook/ch20/audio/en/multiply.mp3
new file mode 100644
index 0000000..de37560
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/multiply.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/part.mp3 b/site/math-notebook/ch20/audio/en/part.mp3
new file mode 100644
index 0000000..4dd15e3
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/part.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/q1.mp3 b/site/math-notebook/ch20/audio/en/q1.mp3
new file mode 100644
index 0000000..9bd95e4
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/q1.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/q2.mp3 b/site/math-notebook/ch20/audio/en/q2.mp3
new file mode 100644
index 0000000..e3a0017
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/q2.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/q3.mp3 b/site/math-notebook/ch20/audio/en/q3.mp3
new file mode 100644
index 0000000..6583f42
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/q3.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/rate.mp3 b/site/math-notebook/ch20/audio/en/rate.mp3
new file mode 100644
index 0000000..b7b7944
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/rate.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/ratecheck.mp3 b/site/math-notebook/ch20/audio/en/ratecheck.mp3
new file mode 100644
index 0000000..641663c
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/ratecheck.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/reverse.mp3 b/site/math-notebook/ch20/audio/en/reverse.mp3
new file mode 100644
index 0000000..3027c20
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/reverse.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/roles.mp3 b/site/math-notebook/ch20/audio/en/roles.mp3
new file mode 100644
index 0000000..67a407c
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/roles.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/timings.js b/site/math-notebook/ch20/audio/en/timings.js
new file mode 100644
index 0000000..d8fdc00
--- /dev/null
+++ b/site/math-notebook/ch20/audio/en/timings.js
@@ -0,0 +1,778 @@
+window.TIMINGS = {
+ "intro": {
+ "dur": 31.536,
+ "marks": {
+ "sub": 15.482
+ },
+ "cues": [
+ [
+ 0.104,
+ "Chapter twenty."
+ ],
+ [
+ 1.302,
+ "Percent word problems."
+ ],
+ [
+ 3.216,
+ "A percent comparison has three pieces: an amount, a rate, and a whole."
+ ],
+ [
+ 8.685,
+ "Sometimes the amount is missing."
+ ],
+ [
+ 10.716,
+ "Sometimes we need the percent."
+ ],
+ [
+ 12.669,
+ "Sometimes we must work backward to the whole."
+ ],
+ [
+ 15.482,
+ "The same relationship handles all three."
+ ],
+ [
+ 18.62,
+ "We will make the words match a picture, choose the operation, and check that the answer fits the question."
+ ],
+ [
+ 24.648,
+ "Letters will hold places for unknown numbers."
+ ],
+ [
+ 27.708,
+ "The picture will keep us honest about what one hundred percent means."
+ ]
+ ]
+ },
+ "roles": {
+ "dur": 38.136,
+ "marks": {
+ "whole": 3.802,
+ "part": 8.555,
+ "rate": 12.109,
+ "equation": 19.219
+ },
+ "cues": [
+ [
+ 0.104,
+ "This strip represents eighty meters of a walking route."
+ ],
+ [
+ 3.802,
+ "The complete route is the whole: eighty meters stands for one hundred percent."
+ ],
+ [
+ 8.555,
+ "The blue section is twenty-four meters of that same route."
+ ],
+ [
+ 12.109,
+ "It fills thirty percent of the whole strip."
+ ],
+ [
+ 14.987,
+ "Thirty percent is zero point three as a decimal rate."
+ ],
+ [
+ 19.219,
+ "Part equals decimal rate times whole: twenty-four equals zero point three times eighty."
+ ],
+ [
+ 25.521,
+ "These are three different roles, even though all three appear in one comparison."
+ ],
+ [
+ 30.794,
+ "The whole sets the size of each percent."
+ ],
+ [
+ 33.698,
+ "Thirty percent of a different route would usually be a different distance."
+ ]
+ ]
+ },
+ "translate": {
+ "dur": 40.632,
+ "marks": {
+ "unknown": 5.417,
+ "is": 9.453,
+ "of": 14.154,
+ "decimal": 18.451,
+ "roles": 27.161
+ },
+ "cues": [
+ [
+ 0.091,
+ "Consider the question: what is thirty percent of eighty?"
+ ],
+ [
+ 3.529,
+ "First decide what is missing."
+ ],
+ [
+ 5.417,
+ "What stands for the unknown part, so we use the letter x."
+ ],
+ [
+ 9.453,
+ "In this percent sentence, is tells us the two expressions are equal."
+ ],
+ [
+ 14.154,
+ "Thirty percent of eighty means thirty percent multiplied by eighty."
+ ],
+ [
+ 18.451,
+ "Write thirty percent as the decimal zero point three."
+ ],
+ [
+ 22.331,
+ "Now the equation says x equals zero point three times eighty."
+ ],
+ [
+ 27.161,
+ "These word cues help with this sentence, but do not blindly translate every word problem word by word."
+ ],
+ [
+ 33.815,
+ "Identify the part, rate, and whole."
+ ],
+ [
+ 36.862,
+ "Their meaning matters more than their order in the sentence."
+ ]
+ ]
+ },
+ "part": {
+ "dur": 37.824,
+ "marks": {
+ "tens": 4.388,
+ "select": 12.8,
+ "answer": 24.557
+ },
+ "cues": [
+ [
+ 0.091,
+ "We want thirty percent of eighty."
+ ],
+ [
+ 2.057,
+ "Keep the eighty-meter whole fixed."
+ ],
+ [
+ 4.388,
+ "Divide it into ten equal groups."
+ ],
+ [
+ 6.732,
+ "Each group is ten percent of the route, and eighty divided by ten is eight meters."
+ ],
+ [
+ 12.8,
+ "Thirty percent uses three of these ten groups."
+ ],
+ [
+ 16.315,
+ "Color exactly those three groups blue."
+ ],
+ [
+ 19.362,
+ "The groups do not grow or slide away from the whole; they show the portion we need."
+ ],
+ [
+ 24.557,
+ "Three times eight is twenty-four meters."
+ ],
+ [
+ 27.448,
+ "The full strip still represents eighty meters."
+ ],
+ [
+ 30.625,
+ "Finding a percent of an amount means taking that fraction of the amount, not treating the percent number as a distance."
+ ]
+ ]
+ },
+ "multiply": {
+ "dur": 40.608,
+ "marks": {
+ "convert": 4.258,
+ "product": 7.396,
+ "check": 17.005
+ },
+ "cues": [
+ [
+ 0.104,
+ "The picture gives the same answer as decimal multiplication."
+ ],
+ [
+ 4.258,
+ "Thirty percent becomes zero point three."
+ ],
+ [
+ 7.396,
+ "Zero point three times eighty equals twenty-four."
+ ],
+ [
+ 11.354,
+ "The unknown part is twenty-four meters, so the answer keeps the unit of the whole."
+ ],
+ [
+ 17.005,
+ "Check its size: thirty percent is less than half, and twenty-four is less than half of eighty."
+ ],
+ [
+ 23.529,
+ "Also, twenty-four divided by eighty is zero point three."
+ ],
+ [
+ 27.969,
+ "Both checks agree."
+ ],
+ [
+ 29.128,
+ "If you had multiplied thirty by eighty, you would get twenty-four hundred, which is far larger than the whole."
+ ],
+ [
+ 35.938,
+ "The percent sign tells us to divide the rate number by one hundred first."
+ ]
+ ]
+ },
+ "q1": {
+ "dur": 7.992,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "All three strips represent forty meters."
+ ],
+ [
+ 4.284,
+ "Choose the blue part equal to thirty percent of that whole."
+ ]
+ ]
+ },
+ "rate": {
+ "dur": 40.968,
+ "marks": {
+ "ratio": 12.005,
+ "decimal": 15.651,
+ "percent": 19.531
+ },
+ "cues": [
+ [
+ 0.091,
+ "Now the part is eighteen meters and the whole is sixty meters."
+ ],
+ [
+ 5.156,
+ "The percent is missing."
+ ],
+ [
+ 7.07,
+ "The strip shows eighteen of sixty, with both lengths using the same scale."
+ ],
+ [
+ 12.005,
+ "Compare part with whole: eighteen divided by sixty."
+ ],
+ [
+ 15.651,
+ "That gives zero point three."
+ ],
+ [
+ 17.682,
+ "Call this decimal rate r."
+ ],
+ [
+ 19.531,
+ "To report the percent, multiply the decimal rate by one hundred: thirty percent."
+ ],
+ [
+ 25.43,
+ "The decimal rate r stays zero point three; thirty is the number before the percent sign."
+ ],
+ [
+ 32.122,
+ "Do not turn r into thirty inside the multiplication equation."
+ ],
+ [
+ 36.615,
+ "The two forms name the same share, but they need their own notation."
+ ]
+ ]
+ },
+ "ratecheck": {
+ "dur": 39.144,
+ "marks": {
+ "divide": 6.745,
+ "check": 13.88,
+ "units": 22.292
+ },
+ "cues": [
+ [
+ 0.104,
+ "Why divide the part by the whole?"
+ ],
+ [
+ 1.992,
+ "In part equals rate times whole, we know eighteen equals r times sixty."
+ ],
+ [
+ 6.745,
+ "Dividing eighteen by sixty undoes multiplying by sixty and leaves r equal to zero point three."
+ ],
+ [
+ 13.88,
+ "Put that rate back: zero point three times sixty equals eighteen."
+ ],
+ [
+ 18.841,
+ "The same blue eighteen-meter section is recovered."
+ ],
+ [
+ 22.292,
+ "The meters in the part and whole measure the same kind of quantity, so their ratio has no meter unit."
+ ],
+ [
+ 29.297,
+ "Report thirty percent, not thirty meters."
+ ],
+ [
+ 32.617,
+ "Reversing the division would compare the sixty-meter whole with the eighteen-meter part, answering a different question."
+ ]
+ ]
+ },
+ "reverse": {
+ "dur": 38.184,
+ "marks": {
+ "roles": 5.964,
+ "ratio": 11.185,
+ "percent": 20.755
+ },
+ "cues": [
+ [
+ 0.104,
+ "A sentence can put the same roles in a different order."
+ ],
+ [
+ 3.411,
+ "What percentage of eight is three?"
+ ],
+ [
+ 5.964,
+ "Eight is still the whole."
+ ],
+ [
+ 7.76,
+ "Three is the part."
+ ],
+ [
+ 8.997,
+ "The missing value is the rate."
+ ],
+ [
+ 11.185,
+ "The equation is r times eight equals three."
+ ],
+ [
+ 14.583,
+ "Divide the part by the whole: three divided by eight is zero point three seven five."
+ ],
+ [
+ 20.755,
+ "Multiply that decimal rate by one hundred to report thirty-seven point five percent."
+ ],
+ [
+ 26.992,
+ "The blue section fills three eighths of the same whole strip."
+ ],
+ [
+ 31.25,
+ "No rounding is needed."
+ ],
+ [
+ 32.917,
+ "A percent can have a decimal point, and a question does not have to begin with the part."
+ ]
+ ]
+ },
+ "q2": {
+ "dur": 6.288,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Quick check."
+ ],
+ [
+ 1.133,
+ "Choose the picture whose blue part is eighteen meters out of a sixty-meter whole."
+ ]
+ ]
+ },
+ "whole": {
+ "dur": 44.904,
+ "marks": {
+ "groups": 9.583,
+ "unit": 16.979,
+ "extend": 22.943,
+ "answer": 35.143
+ },
+ "cues": [
+ [
+ 0.104,
+ "This time, twelve is forty percent of an unknown whole."
+ ],
+ [
+ 4.453,
+ "These twelve counters show the known part."
+ ],
+ [
+ 7.148,
+ "Each counter represents one unit."
+ ],
+ [
+ 9.583,
+ "Forty percent is four of ten equal groups."
+ ],
+ [
+ 13.008,
+ "Put the twelve original counters into four groups of three."
+ ],
+ [
+ 16.979,
+ "One group is ten percent of the unknown whole, so ten percent is three units."
+ ],
+ [
+ 22.943,
+ "Keep those original four groups and add six more groups of the same size."
+ ],
+ [
+ 27.839,
+ "Now there are ten equal groups, or one hundred percent."
+ ],
+ [
+ 31.667,
+ "Watch the total grow only when new counters appear."
+ ],
+ [
+ 35.143,
+ "Ten groups of three make thirty."
+ ],
+ [
+ 37.461,
+ "The unknown whole is thirty units."
+ ],
+ [
+ 40.156,
+ "Twelve is four tenths of thirty, exactly as the question says."
+ ]
+ ]
+ },
+ "divide": {
+ "dur": 43.608,
+ "marks": {
+ "divide": 7.982,
+ "check": 24.622,
+ "mistake": 29.792
+ },
+ "cues": [
+ [
+ 0.104,
+ "The completed strip represents a whole of thirty units, with twelve units shaded."
+ ],
+ [
+ 5.612,
+ "We can also find the whole by division."
+ ],
+ [
+ 7.982,
+ "Whole equals part divided by decimal rate: twelve divided by zero point four equals thirty."
+ ],
+ [
+ 14.206,
+ "Division by a number smaller than one can produce a larger result."
+ ],
+ [
+ 18.88,
+ "We are asking how large the full whole must be when twelve is only forty percent of it."
+ ],
+ [
+ 24.622,
+ "Check by multiplication: zero point four times thirty equals twelve."
+ ],
+ [
+ 29.792,
+ "Multiplying twelve by zero point four gives four point eight."
+ ],
+ [
+ 33.867,
+ "That finds forty percent of twelve; it treats twelve as the whole."
+ ],
+ [
+ 38.398,
+ "Our question says twelve is the part."
+ ],
+ [
+ 41.419,
+ "Choose the operation from the roles."
+ ]
+ ]
+ },
+ "q3": {
+ "dur": 8.472,
+ "marks": {},
+ "cues": [
+ [
+ 0.091,
+ "Quick check."
+ ],
+ [
+ 1.094,
+ "These strips share one unit scale."
+ ],
+ [
+ 3.815,
+ "Which whole has exactly twelve units in its blue forty-percent part?"
+ ]
+ ]
+ },
+ "context": {
+ "dur": 43.368,
+ "marks": {
+ "whole": 7.513,
+ "ratio": 15.677,
+ "percent": 20.326,
+ "check": 25.443
+ },
+ "cues": [
+ [
+ 0.104,
+ "Maya has saved seventy-two dollars toward a two-hundred-forty-dollar music keyboard."
+ ],
+ [
+ 5.143,
+ "What percent of the price has she saved?"
+ ],
+ [
+ 7.513,
+ "The full price is the whole, so two hundred forty dollars is one hundred percent."
+ ],
+ [
+ 12.852,
+ "The saved seventy-two dollars is the part."
+ ],
+ [
+ 15.677,
+ "Divide seventy-two by two hundred forty to get zero point three."
+ ],
+ [
+ 20.326,
+ "Report thirty percent."
+ ],
+ [
+ 22.174,
+ "The blue part fills three tenths of the price strip."
+ ],
+ [
+ 25.443,
+ "Zero point three times two hundred forty is seventy-two dollars."
+ ],
+ [
+ 30.508,
+ "We have described the saved share of the price."
+ ],
+ [
+ 33.203,
+ "Read the question again before answering: it asks for a percent, so thirty percent is the final answer, not seventy-two dollars or zero point three dollars."
+ ]
+ ]
+ },
+ "choose": {
+ "dur": 40.104,
+ "marks": {
+ "part": 3.789,
+ "rate": 7.591,
+ "whole": 15.703
+ },
+ "cues": [
+ [
+ 0.104,
+ "One relationship, three possible missing roles."
+ ],
+ [
+ 3.789,
+ "If the part is missing, multiply decimal rate by whole."
+ ],
+ [
+ 7.591,
+ "If the percent is missing, divide part by whole to get decimal rate, then multiply by one hundred to report the percent."
+ ],
+ [
+ 15.703,
+ "If the whole is missing, divide part by decimal rate."
+ ],
+ [
+ 19.258,
+ "All three operations come from the same comparison."
+ ],
+ [
+ 22.253,
+ "Convert a stated percent to a decimal before calculating."
+ ],
+ [
+ 26.562,
+ "Keep the units for an amount, and use a percent sign for a percent."
+ ],
+ [
+ 31.159,
+ "A percent above one hundred can describe a part larger than its reference whole."
+ ],
+ [
+ 36.289,
+ "The method still works because the reference whole has not changed."
+ ]
+ ]
+ },
+ "wrap": {
+ "dur": 35.472,
+ "marks": {
+ "w1": 3.125,
+ "w2": 10.534,
+ "w3": 14.544,
+ "w4": 25.508
+ },
+ "cues": [
+ [
+ 0.143,
+ "Four habits for percent word problems."
+ ],
+ [
+ 3.125,
+ "Identify what one hundred percent represents."
+ ],
+ [
+ 6.276,
+ "That is the whole, even if the sentence puts it first or last."
+ ],
+ [
+ 10.534,
+ "Name the missing role: part, decimal rate, or whole."
+ ],
+ [
+ 14.544,
+ "Use part equals decimal rate times whole."
+ ],
+ [
+ 17.552,
+ "Multiply for the part; divide for the rate or whole."
+ ],
+ [
+ 21.263,
+ "Convert between decimal rate and percent notation carefully."
+ ],
+ [
+ 25.508,
+ "Check your answer in the original question."
+ ],
+ [
+ 27.839,
+ "Include the right unit or percent sign, and compare the result with the picture."
+ ],
+ [
+ 32.878,
+ "Meaning first, arithmetic second."
+ ]
+ ]
+ },
+ "final1": {
+ "dur": 9.144,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set one."
+ ],
+ [
+ 2.096,
+ "Find the missing part."
+ ],
+ [
+ 3.411,
+ "Convert each percent to a decimal rate before multiplying."
+ ],
+ [
+ 7.591,
+ "All answers are exact."
+ ]
+ ]
+ },
+ "final2": {
+ "dur": 8.808,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set two."
+ ],
+ [
+ 2.188,
+ "Find the missing percent."
+ ],
+ [
+ 3.776,
+ "Type only the number before each printed percent sign."
+ ],
+ [
+ 7.266,
+ "All answers are exact."
+ ]
+ ]
+ },
+ "final3": {
+ "dur": 8.088,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Chapter practice, set three."
+ ],
+ [
+ 2.63,
+ "Find the missing whole."
+ ],
+ [
+ 4.023,
+ "Each given amount is the part, so divide it by the decimal rate."
+ ]
+ ]
+ },
+ "finish": {
+ "dur": 9.36,
+ "marks": {},
+ "cues": [
+ [
+ 0.104,
+ "Percent word problems complete."
+ ],
+ [
+ 2.487,
+ "Your first attempts are recorded here."
+ ],
+ [
+ 4.622,
+ "Replay any picture to reconnect the part, decimal rate, and whole."
+ ]
+ ]
+ }
+};
diff --git a/site/math-notebook/ch20/audio/en/translate.mp3 b/site/math-notebook/ch20/audio/en/translate.mp3
new file mode 100644
index 0000000..4c8f9ce
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/translate.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/whole.mp3 b/site/math-notebook/ch20/audio/en/whole.mp3
new file mode 100644
index 0000000..ede866b
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/whole.mp3 differ
diff --git a/site/math-notebook/ch20/audio/en/wrap.mp3 b/site/math-notebook/ch20/audio/en/wrap.mp3
new file mode 100644
index 0000000..3a72667
Binary files /dev/null and b/site/math-notebook/ch20/audio/en/wrap.mp3 differ
diff --git a/site/math-notebook/ch20/index.html b/site/math-notebook/ch20/index.html
new file mode 100644
index 0000000..4f6e6b3
--- /dev/null
+++ b/site/math-notebook/ch20/index.html
@@ -0,0 +1,52 @@
+<!doctype html>
+<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Percent Word Problems — Elementary Mathematics</title><link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render"><style>.band .prompt{font-size:27px}.screen .blanks .bline{gap:12px}.screen .blanks .box{width:8ch!important}.screen .blanks .why{font-size:21px}.screen .blanks .bline svg tspan{font-style:normal}</style></head><body>
+<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
+'use strict';
+const CHAPTER={number:20,title:'Percent Word Problems',minutes:13,language:'en'};
+// ch19 fixed-whole bars; blue = part, chalk = whole, amber = decimal rate/focus.
+const wwText=(p,s,x,y,t=0,size=30,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
+const wwMath=(p,s,x,y,t=0,size=52,col=COL.chalk)=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor:'middle',o:0});show(e,t);return e;};
+const wwTitle=(p,s,sub='')=>{wwText(p,s,100,110,.1,43);if(sub)wwText(p,sub,100,165,.15,27,COL.dim);};
+function wwBar(p,x,y,w,part,whole,t=0,h=110,cuts=10){const g=G(p,{x,y,o:0});g.dataset.whole=String(whole);g.dataset.part=String(part);const shade=mk('rect',{width:w*part/whole,height:h,fill:COL.whole,'fill-opacity':.55},g);const outline=mk('rect',{width:w,height:h,fill:'none',stroke:COL.chalk,'stroke-width':3},g);const lines=G(g);for(let i=1;i<cuts;i++)path(lines,`M${w*i/cuts} 0V${h}`,{stroke:COL.dim,'stroke-width':2});show(g,t);return {g,shade,outline,lines,w,h,part,whole};}
+function wwRoleBar(p,part,whole,unit='meters',y=285){const b=wwBar(p,220,y,1160,part,whole);wwText(p,'WHOLE: '+whole+' '+unit+' = 100%',800,y-35,0,34,COL.chalk,'middle');wwText(p,'PART: '+part+' '+unit,220+1160*part/whole/2,y+165,0,34,COL.whole,'middle');return b;}
+function wwChoices(p,parts,whole){return parts.map((n,i)=>{const x=140+i*480,g=G(p),b=wwBar(g,x,340,360,n,whole,0,110);wwText(g,String.fromCharCode(65+i),x+180,265,0,34,COL.dim,'middle');wwText(g,'whole '+whole+' meters',x+180,315,0,29,COL.chalk,'middle');wwText(g,'blue '+n+' meters',x+180,515,0,31,COL.whole,'middle');return {el:g,box:[x-20,225,400,360],label:'Picture '+String.fromCharCode(65+i)+', blue '+n+' of '+whole+' meters',bar:b};});}
+function wwCounters(p){const groups=[];for(let i=0;i<10;i++){const x=190+(i%5)*250,y=i<5?300:560,g=G(p,{o:i<4?1:0});g.dataset.groupId='group-'+i;const counters=[];for(let j=0;j<3;j++){const k=i*3+j,c=G(g,{x:i<4?200+k*100:x+j*52,y:i<4?340:y});c.dataset.counterId='unit-'+k;c.dataset.amount='1';mk('circle',{r:18,fill:i<4?COL.whole:COL.faint,stroke:i<4?COL.whole:COL.chalk,'stroke-width':2},c);counters.push(c);}const outline=G(g,{o:0});mk('rect',{x:x-25,y:y-42,width:155,height:90,rx:9,fill:'none',stroke:COL.task,'stroke-width':2.5},outline);T(outline,'10% = 3 units',{x:x+52,y:y+100,size:25,fill:COL.task,anchor:'middle'});groups.push({g,counters,outline,x,y});}return groups;}
+const BEATS=[
+['intro','Percent Word Problems',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 2 · Ratios, Proportions, and Percents · Chapter 20',{x:800,y:195,size:28,fill:COL.dim,anchor:'middle'});T(g,'Percent Word',{x:800,y:330,size:85,weight:600,anchor:'middle'});T(g,'Problems',{x:800,y:440,size:85,weight:600,anchor:'middle'});T(g,'part = decimal rate × whole',{x:800,y:590,size:48,fill:COL.task,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);wwText(g,'Find the missing role · check its meaning',800,745,m('sub'),35,COL.dim,'middle');hide(g,D-.8,.7);}],
+['roles','Three roles',m=>{const p=panel(0);wwTitle(p,'One route · three roles','One full strip represents 80 meters');S.wwRoles=wwBar(p,220,295,1160,24,80);wwText(p,'WHOLE: 80 meters = 100%',800,255,m('whole'),36,COL.chalk,'middle');wwText(p,'PART: 24 meters',394,470,m('part'),33,COL.whole,'middle');wwText(p,'RATE: 30% = 0.30',1070,485,m('rate'),40,COL.task,'middle');wwMath(p,'24 = 0.30 × 80',800,665,m('equation'),65);wwText(p,'part = decimal rate × whole',800,810,m('equation',2),36,COL.dim,'middle');}],
+['translate','Words into a comparison',m=>{const p=panel(0);wwTitle(p,'What is 30% of 80?','Useful cues in this percent sentence · roles still come first');[['What',400,COL.whole],['is',630,COL.chalk],['30%',780,COL.task],['of',995,COL.chalk],['80',1140,COL.chalk]].forEach(([word,x,col])=>wwText(p,word,x,310,0,64,col,'middle'));wwText(p,'unknown part: x',210,485,m('unknown'),34,COL.whole);wwText(p,'is: =',600,485,m('is'),34);wwText(p,'of: ×',1030,485,m('of'),34);wwMath(p,'30% = 0.30',800,605,m('decimal'),49,COL.task);wwMath(p,'x = 0.30 × 80',800,720,m('roles'),64);wwText(p,'Identify the whole, part and rate; do not rely only on keywords.',800,835,m('roles',2),29,COL.dim,'middle');}],
+['part','Find the part',m=>{const p=panel(0);wwTitle(p,'Find 30% of an 80-meter route','The whole stays 80 meters throughout.');S.wwPart=wwBar(p,220,280,1160,0,80);hide(S.wwPart.lines,0,0);show(S.wwPart.lines,m('tens'));wwText(p,'10 equal groups · each 10% = 8 meters',800,470,m('tens'),37,COL.task,'middle');for(let i=0;i<3;i++){const r=mk('rect',{x:i*116,y:0,width:116,height:110,fill:COL.whole,'fill-opacity':.55},S.wwPart.g);r.dataset.selectedGroup=String(i);put(r,{o:0});show(r,m('select')+i*.8,.5);}wwMath(p,'3 × 8 = 24',800,635,m('answer'),64,COL.whole);wwText(p,'30% of 80 meters = 24 meters',800,795,m('answer',2),40,COL.whole,'middle');}],
+['multiply','Multiply rate by whole',m=>{const p=panel(0);wwTitle(p,'Find the part · multiply');S.wwMultiply=wwRoleBar(p,24,80);wwMath(p,'30% = 0.30',800,555,m('convert'),51,COL.task);wwMath(p,'x = 0.30 × 80 = 24',800,680,m('product'),61,COL.whole);wwText(p,'30% < 50% and 24 < 40',800,820,m('check'),34,COL.dim,'middle');}],
+['q1','Choose the part',()=>{const p=panel(0);wwTitle(p,'Each whole is 40 meters','Pick the blue part that matches 30% of this whole.');S.wwChoices=wwChoices(p,[12,30,28],40);},{ask:done=>quiz(BAND,[{id:'c-part',prompt:'Which picture shows 30% of 40 meters?',build:pickEls(S.wwChoices,0,'0.30 × 40 = 12 meters. Picture A shades three of ten equal groups.',i=>i===1?'30 is the percent number, not the number of meters. Thirty meters would be 75% of forty.':'Twenty-eight meters is 70% of forty. We need the smaller thirty-percent part, twelve meters.')}],done)}],
+['rate','Find the percent',m=>{const p=panel(0);wwTitle(p,'18 is what percent of 60?','r means the decimal rate · the whole is 60 meters');S.wwRate=wwRoleBar(p,18,60);wwMath(p,['r = ',F('18','60')],425,590,m('ratio'),58,COL.task);wwMath(p,'r = 0.30',1100,590,m('decimal'),57,COL.task);wwMath(p,'0.30 × 100 = 30',800,755,m('percent'),63);wwText(p,'Decimal rate r = 0.30 · reported percent = 30%',800,835,m('percent',2),30,COL.dim,'middle');}],
+['ratecheck','Check the decimal rate',m=>{const p=panel(0);wwTitle(p,'18 = r × 60','Part ÷ whole gives the decimal rate.');S.wwRateCheck=wwRoleBar(p,18,60);wwMath(p,'r = 18 ÷ 60 = 0.30',800,560,m('divide'),57,COL.task);wwMath(p,'0.30 × 60 = 18',800,695,m('check'),63,COL.whole);wwText(p,'meters ÷ meters: a ratio · report 30%, not 30 meters',800,825,m('units'),31,COL.dim,'middle');}],
+['reverse','Same roles, different word order',m=>{const p=panel(0);wwTitle(p,'What percentage of 8 is 3?','Whole: 8 units · part: 3 units · missing: percent');S.wwReverse=wwBar(p,220,275,1160,3,8,0,110,8);wwText(p,'WHOLE: 8 units = 100%',800,240,m('roles'),34,COL.chalk,'middle');wwText(p,'PART: 3 units',437.5,440,m('roles'),32,COL.whole,'middle');wwMath(p,['r × 8 = 3 r = ',F('3','8'),' = 0.375'],800,595,m('ratio'),55,COL.task);wwMath(p,'0.375 × 100 = 37.5',800,755,m('percent'),61);wwText(p,'Reported percent: 37.5% · exact, no rounding',800,835,m('percent',2),31,COL.dim,'middle');}],
+['q2','Choose the percent',()=>{const p=panel(0);wwTitle(p,'The whole is 60 meters','Which blue section is exactly 18 meters?');S.wwChoices=wwChoices(p,[18,1.8,42],60);S.wwChoices.forEach(c=>c.box[3]=430);[30,3,70].forEach((n,i)=>wwText(S.wwChoices[i].el,n+'%',320+i*480,610,0,39,COL.task,'middle'));},{ask:done=>quiz(BAND,[{id:'c-rate',prompt:'Which picture represents 18 out of 60, and therefore its percent?',build:pickEls(S.wwChoices,0,'18 ÷ 60 = 0.30, so 18 is 30% of 60. Picture A has the required eighteen-meter blue part.',i=>i===1?'3% of 60 is only 1.8. The decimal rate is 0.30, which converts to 30%.':'70% of 60 is 42. That is the unfilled share of the correct picture, not its eighteen-meter part.')}],done)}],
+['whole','Reconstruct the whole',m=>{const p=panel(0);wwTitle(p,'12 is 40% of what whole?','Each counter = 1 unit · blue counters are the known part');S.wwGroups=wwCounters(p);S.wwTotal=wwText(p,'Visible total: 12 units',800,810,0,37,COL.chalk,'middle');S.wwGroups.slice(0,4).forEach(group=>{group.counters.forEach((c,j)=>tw(c,{x:group.x+j*52,y:group.y},m('groups'),2,io));show(group.outline,m('groups')+2);});wwText(p,'4 equal groups = 40% · 1 group = 10%',800,215,m('unit'),33,COL.task,'middle');S.wwGroups.slice(4).forEach(group=>put(group.outline,{o:1}));prog(q=>{const n=Math.floor(q*6+1e-8);S.wwGroups.slice(4).forEach((group,i)=>put(group.g,{o:i<n?1:0}));S.wwTotal.textContent='Visible total: '+(12+n*3)+' units';},m('extend'),4.8,lin);wwText(p,'10 equal groups = 100% · WHOLE = 30 units',800,740,m('answer'),35,COL.task,'middle');}],
+['divide','Divide part by decimal rate',m=>{const p=panel(0);wwTitle(p,'Find the whole · 12 is 40% of w','The known part is 12 units, not the whole.');S.wwWhole=wwRoleBar(p,12,30,'units');wwMath(p,'w = 12 ÷ 0.40 = 30',800,550,m('divide'),62,COL.task);wwMath(p,'check: 0.40 × 30 = 12',800,670,m('check'),54,COL.whole);wwText(p,'12 × 0.40 = 4.8 answers a different question:',800,785,m('mistake'),30,COL.dim,'middle');wwText(p,'“What is 40% of 12?” treats 12 as the whole.',800,835,m('mistake',2),30,COL.dim,'middle');}],
+['q3','Choose the whole',()=>{const p=panel(0);wwTitle(p,'Which whole has a 12-unit blue part at 40%?','SAME SCALE: 15 pixels = 1 unit in every strip');S.wwChoices=[30,4.8,20].map((whole,i)=>{const x=115+i*495,g=G(p),b=wwBar(g,x,335,whole*15,.4*whole,whole,0,110);wwText(g,String.fromCharCode(65+i),x+220,250,0,34,COL.dim,'middle');wwText(g,'whole '+whole+' units',x+220,305,0,30,COL.chalk,'middle');wwText(g,'blue '+(.4*whole).toFixed(2).replace(/\.?0+$/,'')+' units',x+220,510,0,31,COL.whole,'middle');wwText(g,'40% of this whole',x+220,600,0,29,COL.task,'middle');return {el:g,box:[x-15,220,480,410],label:'Whole '+whole+' units',bar:b};});},{ask:done=>quiz(BAND,[{id:'c-whole',prompt:'Choose the whole for which 12 is 40%.',build:pickEls(S.wwChoices,0,'12 ÷ 0.40 = 30 units. Forty percent of the 30-unit whole is exactly 12 units.',i=>i===1?'4.8 is 40% of 12. Its own forty-percent part is only 1.92, so it cannot have a twelve-unit part.':'Forty percent of 20 is 8, not 12. Divide the known part 12 by the decimal rate 0.40.')}],done)}],
+['context','A savings goal',m=>{const p=panel(0);wwTitle(p,'$72 saved · keyboard price $240','What percent of the full price has Maya saved?');S.wwSavings=wwBar(p,220,295,1160,72,240);wwText(p,'WHOLE: $240 = 100%',800,255,m('whole'),35,COL.chalk,'middle');wwText(p,'PART: $72',394,465,m('whole'),34,COL.whole,'middle');wwMath(p,['r = ',F('72','240'),' = 0.30'],800,585,m('ratio'),57,COL.task);wwMath(p,'saved: 30%',800,720,m('percent'),63,COL.whole);wwText(p,'check: 0.30 × $240 = $72',800,835,m('check'),34,COL.dim,'middle');}],
+['choose','Choose from the missing role',m=>{const p=panel(0);wwTitle(p,'part = decimal rate × whole','The whole is the reference for 100%, even when the part is larger.');[['Missing part','part = decimal rate × whole','part'],['Missing percent','decimal rate = part ÷ whole; then × 100','rate'],['Missing whole','whole = part ÷ decimal rate','whole']].forEach(([role,eq,mark],i)=>{wwText(p,role,170,315+i*205,m(mark),35,COL.task);wwText(p,eq,170,380+i*205,m(mark)+.3,39,COL.chalk);});}],
+['wrap','Four habits',m=>{const p=panel(0);wwTitle(p,'Meaning first · arithmetic second');[['Identify the whole: what represents 100%?','w1'],['Name the missing role: part, decimal rate or whole.','w2'],['Use part = decimal rate × whole; choose multiply or divide.','w3'],['Check in the original question; include units or %.','w4']].forEach(([s,key],i)=>{const g=G(p,{x:-16,y:285+i*145,o:0});mk('circle',{cx:130,cy:-10,r:26,fill:COL.task},g);T(g,String(i+1),{x:130,y:0,size:30,anchor:'middle',fill:COL.board});T(g,s,{x:195,size:31});tw(g,{x:0,o:1},m(key),.6);});}],
+['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-part',prompt:'Find the missing part. All answers exact; type only the number.',build:blanks([
+{parts:['35% of 80 = ',{box:'28'}],why:'0.35 × 80 = 28. The rate is 0.35 and the whole is 80.'},
+{parts:['12% of 250 = ',{box:'30'}],why:'0.12 × 250 = 30. Divide the percent number by 100 first.'},
+{parts:['2.5% of 64 = ',{box:'1.6'}],why:'2.5% = 0.025; 0.025 × 64 = 1.6 exactly.'},
+{parts:['125% of 32 = ',{box:'40'}],why:'1.25 × 32 = 40. The part exceeds the 32-unit reference whole because 125% exceeds 100%.'}
+])}],done,'Chapter practice 1 of 3')}],
+['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-rate',prompt:'Find the missing percent. Type the number before the printed % sign.',build:blanks([
+{parts:['9 is ',{box:'25'},'% of 36'],why:'9 ÷ 36 = 0.25; convert that decimal rate to 25%.'},
+{parts:['21 is ',{box:'35'},'% of 60'],why:'21 ÷ 60 = 0.35, so the reported percent is 35%.'},
+{parts:['What percentage of 8 is 3? ',{box:'37.5'},'%'],why:'The part is 3, the whole is 8. 3 ÷ 8 = 0.375 = 37.5%.'},
+{parts:['45 is ',{box:'150'},'% of 30'],why:'45 ÷ 30 = 1.5 = 150%. The reference whole stays 30; the compared amount is one and a half of those wholes.'}
+])}],done,'Chapter practice 2 of 3')}],
+['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-whole',prompt:'Find each missing whole. For the savings goal, enter dollars as a number.',build:blanks([
+{parts:['18 is 30% of ',{box:'60'}],why:'18 ÷ 0.30 = 60; checking gives 0.30 × 60 = 18.'},
+{parts:['14 is 35% of ',{box:'40'}],why:'14 ÷ 0.35 = 40; checking gives 0.35 × 40 = 14.'},
+{parts:['6 is 2.5% of ',{box:'240'}],why:'2.5% = 0.025; 6 ÷ 0.025 = 240. The small rate requires a larger whole.'},
+{parts:['$84 saved = 70% of a $',{box:'120'},' goal'],why:'84 ÷ 0.70 = 120 dollars. 70% of the $120 goal is $84.'}
+])}],done,'Chapter practice 3 of 3')}],
+['finish','Finished',()=>panel(0),{ask:finishCard}]
+].map(([id,title,run,extra])=>({id,title,run,...extra}));
+boot();
+</script></body></html>
diff --git a/site/math-notebook/index.html b/site/math-notebook/index.html
index 470969a..1dc0e1a 100644
--- a/site/math-notebook/index.html
+++ b/site/math-notebook/index.html
@@ -230,7 +230,7 @@ main#contents { padding-bottom: 80px; }
// Chapters are numbered in order through the units. Add a chapter here when its lesson is ready.
const UNITS = [ // [unit title, [[chapter title, minutes], ...]]; chapters are numbered in order. Add a chapter when its lesson is ready.
['The Number System', [['Types of Numbers and the Number Line', 9], ['Positive and Negative Numbers', 8], ['Absolute Value', 9], ['Factors and Greatest Common Factor', 11], ['Multiples and Least Common Multiple', 10], ['Fraction Basics: Types of Fractions and Adding and Subtracting Fractions', 13], ['Multiplying and Dividing Fractions', 12], ['Adding and Subtracting Decimals', 11], ['Multiplying Decimals', 12], ['Dividing Decimals', 10], ['Adding Positive and Negative Numbers', 12], ['Subtracting Positive and Negative Numbers', 13], ['Multiplying and Dividing Positive and Negative Numbers', 14], ['Inequalities', 10]]],
- ['Ratios, Proportions, and Percents', [['Ratios', 9], ['Unit Rate and Unit Price', 10], ['Proportions', 12], ['Converting Measurements', 13], ['Percent', 13]]],
+ ['Ratios, Proportions, and Percents', [['Ratios', 9], ['Unit Rate and Unit Price', 10], ['Proportions', 12], ['Converting Measurements', 13], ['Percent', 13], ['Percent Word Problems', 13]]],
];
const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];
const id = n => 'ch' + String(n).padStart(2, '0');