Variables, constants and data structures
x

Data in algorithms

Data in algorithms

Comparison of a variable score changing from 0 to 1, constant PASS_MARK at 50, string GCSE with indexes 0 to 3, a student record, a one-dimensional scores array, and a two-dimensional grid with row and column labels

Algorithms do not just follow steps. They also store numbers, text, and true or false values so they can count, compare, and make decisions.

Variables, constants and data structures Lesson

  1. GCSE
  2. /Computer Science
  3. /Variables, constants and data structures