Skip to content

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

feat(science): ch10 chapter practice, finish card and contents

yzr1c467f4b38ca
diff --git a/site/science/ch09/index.html b/site/science/ch09/index.html
index f4fae9a..033876b 100644
--- a/site/science/ch09/index.html
+++ b/site/science/ch09/index.html
@@ -14,7 +14,7 @@
<script>
'use strict';
// Chapter 9, one page in book order: part 1 (motion; relative motion), part 2 (speed), part 3 (velocity), part 4 (acceleration).
-const CHAPTER = { number: 9, title: 'Motion', minutes: 18, language: 'en' };
+const CHAPTER = { number: 9, title: 'Motion', minutes: 18, language: 'en', next: '../ch10/' };
/* ---------- chapter helpers ---------- */
const V = 150; // 30 mph on screen, in world px per second (same scale in every road beat)
diff --git a/site/science/ch10/audio/en/final1.mp3 b/site/science/ch10/audio/en/final1.mp3
new file mode 100644
index 0000000..6653dd1
Binary files /dev/null and b/site/science/ch10/audio/en/final1.mp3 differ
diff --git a/site/science/ch10/audio/en/final2.mp3 b/site/science/ch10/audio/en/final2.mp3
new file mode 100644
index 0000000..d0df6c4
Binary files /dev/null and b/site/science/ch10/audio/en/final2.mp3 differ
diff --git a/site/science/ch10/audio/en/finish.mp3 b/site/science/ch10/audio/en/finish.mp3
new file mode 100644
index 0000000..c731a4e
Binary files /dev/null and b/site/science/ch10/audio/en/finish.mp3 differ
diff --git a/site/science/ch10/index.html b/site/science/ch10/index.html
index 15d3425..def4a92 100644
--- a/site/science/ch10/index.html
+++ b/site/science/ch10/index.html
@@ -507,6 +507,35 @@ const BEATS = [
});
txt(p, 'Next: the chapter practice.', 800, 760, m('end'), { size: 32, fill: COL.dim, weight: 500 });
}],
+/* ---------- chapter practice and finish ---------- */
+['final1', 'Chapter practice: force and the first law', () => { panel(0); }, { ask: done => quiz(SCREEN, [
+ { id: 'p-bal', prompt: ['What is the difference between ', h('b', '', 'balanced'), ' and ', h('b', '', 'unbalanced'), ' forces?'],
+ build: choice([['Balanced forces cancel (net force 0); unbalanced forces leave a net force that changes motion.'], ['Balanced forces are always bigger than unbalanced ones.'], ['Unbalanced forces cancel; balanced forces change motion.']], 0,
+ 'Balanced: the net force is zero, nothing changes. Unbalanced: there is a net force in one direction.',
+ [null, 'It is not about size: it is whether the forces cancel.', 'It is the other way around.']) },
+ { id: 'p-first', prompt: ['What is ', h('b', '', 'Newton’s first law'), '?'],
+ build: choice([['An object at rest stays at rest and an object in motion stays in motion, unless a net force acts on it.'], ['Acceleration equals net force divided by mass.'], ['For every action there is an equal and opposite reaction.']], 0,
+ 'That is the law of inertia.', [null, 'That is the second law.', 'That is the third law.']) },
+ { id: 'p-unit', prompt: ['What is the unit of force, and what is one unit equal to?'],
+ build: choice([['the newton: 1 N = 1 kg × 1 m/s²'], ['the newton: 1 N = 1 kg × 1 m/s'], ['the kilogram: 1 kg = 1 N × 1 m/s²']], 0,
+ 'One newton gives a 1 kilogram mass an acceleration of 1 meter per second squared.',
+ [null, 'Close: it is meters per second squared, an acceleration.', 'Force is measured in newtons; the kilogram measures mass.']) },
+ { id: 'p-net3', prompt: ['Forces on a box: 6 newtons right, 4 newtons right, and 3 newtons left. What is the net force?'],
+ build: blanks([{ parts: ['net force = 6 + 4 − 3 = ', { box: '7' }, ' newtons, to the right'], why: 'Same direction adds (6 + 4 = 10); the opposite force subtracts (10 − 3 = 7).', hint: 'Add the forces to the right, then subtract the one to the left.' }]) },
+], done, 'Chapter practice, set 1 of 2 · question') }],
+['final2', 'Chapter practice: the second and third laws', () => { panel(0); }, { ask: done => quiz(SCREEN, [
+ { id: 'p-second', prompt: ['What is ', h('b', '', 'Newton’s second law'), '?'],
+ build: choice([['The acceleration of an object equals the net force on it divided by its mass.'], ['Objects keep their motion unless a net force acts.'], ['Forces act in pairs.']], 0,
+ 'a = net force ÷ mass, or net force = mass × acceleration.', [null, 'That is the first law.', 'That is the third law.']) },
+ { id: 'p-car', prompt: ['A 2,000 kilogram car accelerates at 3 meters per second squared. What force does the engine apply? (Type the number without a comma.)'],
+ build: blanks([{ parts: ['net force = 2000 × 3 = ', { box: '6000' }, ' newtons'], why: 'net force = mass × acceleration = 2,000 × 3 = 6,000 newtons.', hint: 'net force = mass × acceleration. Type 6000.' }]) },
+ { id: 'p-third', prompt: ['What is ', h('b', '', 'Newton’s third law'), '?'],
+ build: choice([['For every action, there is an equal and opposite reaction.'], ['More mass means more inertia.'], ['Momentum equals mass times velocity.']], 0,
+ 'Forces act in pairs: equal in size, opposite in direction.', [null, 'That is about inertia (first law).', 'That defines momentum.']) },
+ { id: 'p-mom', prompt: ['A 0.5 kilogram ball moves at 8 meters per second. What is its momentum?'],
+ build: blanks([{ parts: ['momentum = 0.5 × 8 = ', { box: '4' }, ' kilogram meters per second'], why: 'mass × velocity = 0.5 × 8 = 4.', hint: 'momentum = mass × velocity.' }]) },
+], done, 'Chapter practice, set 2 of 2 · question') }],
+['finish', 'Finished', () => { panel(0); }, { ask: finishCard }],
].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
boot();
diff --git a/site/science/index.html b/site/science/index.html
index 2a315b2..a333f5a 100644
--- a/site/science/index.html
+++ b/site/science/index.html
@@ -197,7 +197,7 @@ main#contents { padding-bottom: 80px; }
<svg class="mascot draw" id="guide" width="210" height="147"></svg>
<p class="kicker">An animated science book · physics</p>
<h1>Motion <i>&amp;</i> Forces</h1>
- <p class="lede">The physics chapters of a middle-school science notebook, as short narrated animations with quick checks. Chapter 9, Motion, is ready.</p>
+ <p class="lede">The physics chapters of a middle-school science notebook, as short narrated animations with quick checks. Chapters 9 and 10 are ready.</p>
<div class="acts">
<a class="btn go" href="#contents">Open the book<svg viewBox="0 0 16 16"><path d="M6 2.5 11.5 8 6 13.5 4.6 12.1 8.7 8 4.6 3.9z"/></svg></a>
<a class="btn quiet" id="resume" hidden></a>
@@ -219,7 +219,7 @@ main#contents { padding-bottom: 80px; }
// chapter numbers; chapters are numbered in order from there. Add a chapter here when its lesson is ready.
const START = { unit: 3, chapter: 9 };
const UNITS = [ // [unit title, [[chapter title, minutes], ...]]
- ['Motion, Forces, and Work', [['Motion', 18]]],
+ ['Motion, Forces, and Work', [['Motion', 18], ['Force and Newton’s Laws of Motion', 13]]],
];
const HUES = ['#f4a48c', '#86c9e8', '#f3c95c', '#e8a0c8', '#8fd6b0', '#bba8ee', '#f0b45a'];
const id = n => 'ch' + String(n).padStart(2, '0');