Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Condition?

Definition 10.4 Primary & Middle School Computer Science · Hoofdstuk 10 — Algorithms: Repeat and Decide

A condition is a question about the situation whose answer is yes or no. An algorithm can decide: if the condition is true, it carries out some instructions; otherwise it carries out others.

A decision drawn as a diamond: the condition inside, one arrow for each answer. “If the square ahead is free, forward; otherwise, turn left.”
A decision drawn as a diamond: the condition inside, one arrow for each answer. “If the square ahead is free, forward; otherwise, turn left.”
Lees in het hoofdstuk →