Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Instruction?

Definition 2.1 Primary & Middle School Computer Science · Bab 2 — Instructions in Order

An instruction is one step that tells exactly what to do: “take two slices of bread”, “turn left”, “stop”.

Contoh

Example 2.2 (Brushing your teeth)

1. Wet the toothbrush. 2. Put toothpaste on the toothbrush. 3. Brush your teeth for two minutes. 4. Rinse your mouth. 5. Rinse the toothbrush. Each line is one instruction.

Example 2.7 (Fixing Sami’s sequence)

With a finger: forward, forward, forward — the finger is three squares to the right of S. The flag is four squares to the right, so the next instruction should be “forward” again, not “left”. The fourth instruction is the wrong one. The fixed sequence is forward four times, left, then forward three times: the robot goes up the column of the flag and stops on it.

Baca dalam konteks →