الانتقال إلى المحتوى
The Lumenary
الصفوف 3–5Computationمُخطَّط له

Repetition and decisions

Repeating steps with loops, making decisions with if–then rules, and algorithms for arithmetic such as column addition, in unplugged activities and simple block-based programs.

math.comp.loops-and-conditions

لم يُكتب درس هذا الموضوع بعد. المخطط أدناه جزء من خريطة المنهج ولم تجرِ مراجعته.

يعتمد على

عدد المتطلبات السابقة الإلزامية (حتى الأساس): 1

ستتعلّم

  • Use a loop to shorten a sequence of repeated instructions, such as drawing a square.
  • Write if–then rules for sorting objects or playing a simple game.
  • Explain the written algorithm for column addition as a loop over place values with a carry.

تعريف

  • A loop repeats a block of instructions a fixed number of times or until a condition holds.
  • A condition is a statement that is true or false, used to decide which instructions to follow.

مبرهنة

  • 'Repeat 4 times: move forward, turn right 90°' draws a square.
  • Column addition works through the digits from right to left, carrying 1 whenever a column sum is 10 or more.

مفاهيم خاطئة شائعة

  • Thinking a loop must run forever or exactly once.
  • Writing a stopping condition that can never become true, so that the loop never stops.

يقود إلى

اكتشافات اختيارية

  • Computability Can we always tell whether a program will stop? No algorithm can decide this for every program: the halting problem is undecidable.

قراءات إضافية

  • Tim Bell, Ian H. Witten and Mike Fellows, Computer Science Unplugged