Fraction Subtraction Puzzle: Random Questions with Auto-Checking
Loading the math board and drawing, please wait…
In collections
Wiederholung: Rechnen mit Dezimalzahlen und Brüchen
This example demonstrates an interactive “maze/level” practice for fraction subtraction: it randomly generates tasks and hint placements, lets students enter answers in the designated region, and then automatically checks correctness. The core mathematics is subtracting fractions, computed by separating numerator and denominator logic to produce an expected solution fraction that can be compared t
GeoGebra Commands & Parameters
Shuffle(1…10) → randomNumbers, {5, 3, 10, 2, 1, 4, 9, 8, 7, 6}Element(randomNumbers, Mod[questionCount, Length[randomNumbers]] + 1) → randomNumberElement(Element[allSolutionsSplitted, randomNumber], 2) → expectedSolutionZaehlerElement(Element[allSolutionsSplitted, randomNumber], 3) → expectedSolutionNennerElement(Element[allSolutionsSplitted, randomNumber], 1) → expectedSolutionGanzeIf(Defined[expectedSolutionGanze], expectedSolutionGanze + expectedSolutionZaehler / expectedSolutionNenner, expectedSolutionZaehler / expectedSolutionNenner) → expectedSolutionValueFlatten({labyrinthW01, labyrinthW02, labyrinthW03, labyrinthW04}) → labyrinthWaagrechtFlatten({labyrinthS01, labyrinthS02, labyrinthS03, labyrinthS04}) → labyrinthSenkrechtFlatten({labyrinthSenkrecht, labyrinthWaagrecht}) → labyrinthLength(randomNumbers) → numberOfQuestionsSequence(Polygon[Element[questionsPositions, i], Element[questionsPositions, i] + sizeWaagrecht, Element[questionsPositions, i] + sizeWaagrecht + sizeSenkrecht, Element[questionsPositions, i] + sizeSenkrecht], i, 1, Length[questionsPositions]) → questionsRectanglesIsInRegion(A, Element[questionsRectangles, actualQuestionNeeded]) → showQuestionTextfield(studentAnswer01) → inputBox01Textfield(studentAnswer02) → inputBox02Textfield(studentAnswer03) → inputBox03Text("\textsf{" + (Element[allTasks, randomNumber]) + "}", txtTaskPosition, true, true, -1, 0) → txtTaskIf((¬needGanze) ∧ needBruch, 0, 1) → startPositionBruchXValueText("\textsf{" + (Element[allQuestions, randomNumber]) + "}", txtQuestionPos, true, true, -1, 0) → Text1Numerator(studentAnswer02 / studentAnswer03) → studentAnswer02gekurztDenominator(studentAnswer02 / studentAnswer03) → studentAnswer03gekurztText(Text9, B, false, true, 0, 0) → Text10Segment(C, D) → fSegment(E, I) → gSegment(G, H) → h