Compound Interest Teaching Simulation as a Claude Artifact
Get a live one-page compound interest simulation with three sliders, a compound vs simple chart and a caption that explains each change.
Text prompt for Claude and ChatGPT
You get: one complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Build Growing Money, a one-page explorable teaching simulation of compound versus simple interest to project or share in class. Layout: a heading, the question 'Why does money grow faster over time?', controls, a chart and a caption box below it.
Rules:
1. Exactly three labelled, keyboard-friendly sliders with live values: Starting amount 100 to 10,000; Yearly interest rate 0% to 12% in 0.5 steps; Years 1 to 40. Add a small Yearly/Monthly compounding switch.
2. Canvas chart with Year and Balance axes: compound line A = P(1 + r/n)^(nt), dashed simple line P(1 + rt), a legend and final values at the right end. Whole numbers with thousands separators; currency symbol in one constant.
3. A 'What changed' caption rewrites itself after each change in 2-3 plain sentences: the slider moved, old and new value, the change in final compound balance (amount and percent) and one rule-based insight. Add a live rule-of-72 line, hidden at 0%.
4. A Predict first toggle hides new results behind a Reveal button; include Reset and three original presets.
5. System fonts, calm light theme plus prefers-color-scheme dark, strong contrast, no external files or storage, and a one-line not-financial-advice note.
For another concept, keep this pattern and swap the formula, sliders and insight rules.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Exact formulas and fixed slider ranges leave nothing to guess, so the chart and numbers are correct on the first run.
- Rule-based insights tied to which slider moved make the caption feel written by a teacher, not a generic summary.
- Banning external files and storage means the page runs inside a Claude artifact, a canvas preview or a saved file unchanged.
Paste into Claude and open the result as an artifact: preview it, then share or publish the artifact link with students. It also works in ChatGPT canvas or Gemini Canvas, or saved as an .html file for a classroom screen.
Common edits
- Swap the concept: keep the three-slider, chart and caption pattern but model population growth or radioactive half-life with its own formula and insight rules.
- Add a fourth control for a regular monthly deposit and extend both formulas so students see how steady saving changes the curve.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Build a Claude Artifact Quiz for Students with Leaderboard
A Claude artifact quiz for students: one question at a time with instant feedback and an explanation, a missed-question review, and a shared class leaderboard.
Build an Analytic Grading Rubric with Clear Level Descriptors for Any Assignment
You get a weighted analytic rubric with observable, non-overlapping descriptors per level, student 'I can' statements, and scoring notes for borderline work.
Plan a Backward Design Unit from Standards to Summative Assessment
Get a full unit plan that starts with the final assessment and rubric, breaks it into skills, and maps every daily lesson to one skill with a quick check.
Differentiated Lesson Plan for a Mixed-Ability Class
Writes a timed lesson plan with one shared objective and three tiers of tasks, plus support for learners who need scaffolding and stretch tasks for those who finish early.
60-Minute Lesson Plan with Checks for Understanding and Differentiation
Builds a timed, objective-aligned lesson plan with formative checks, differentiation, and a teach-or-revise readiness verdict. It asks for missing inputs first and keeps assumptions separate.
ChatGPT Study Plan for Finals with Multiple Exams Ranked by Grade Impact
Get the score each final needs with the math shown, your study hours split by grade impact, and a day-by-day schedule to your last exam.
- Make a Timed Practice Exam from Your Lecture Slides
- Explain Why a Missed Quiz Answer Was Wrong
- Fact-Check AI Study Notes Against Your Course Sources
- Explain Academic Concepts at Three Progressive Levels of Rigor
- Ask a Teacher for a Recommendation Letter with a Brag Sheet and Reminder Plan
- Build a 4-Week Reading Motivation Plan for a Reluctant Child Reader