Computer Science
Grade 5
20 min
Representing Numbers: Tally Marks
Learn about representing numbers using tally marks as a simple encoding system.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define tally marks as a unary (base-1) system for representing numbers.
Convert any number up to 30 into its tally mark representation.
Convert a set of tally marks back into its standard decimal number.
Explain the 'group of five' rule and why it makes counting more efficient.
Identify tally marks as a simple form of data encoding.
Describe the steps (algorithm) for creating tally marks for a given number.
Ever tried to count votes for class president or keep score in a game? 🗳️ How do you keep track of a growing number without losing your place?
We're going to explore one of the oldest and simplest ways to represent numbers: tally marks! You'll learn how this system works, why it's a basic form of data encoding, and how it rela...
2
Key Concepts & Vocabulary
TermDefinitionExample
Tally MarkA single stroke ( | ) used to represent one item being counted. It's a simple way to keep a running total.To count three apples, you would draw three tally marks: |||
Data RepresentationThe different ways we can store or show information. Numbers can be represented as digits (7), words ('seven'), or tally marks (|||| ||).The number 5 can be represented as the digit '5' or as the tally mark group '||||'.
EncodingThe process of converting information from one format into another. Computers do this all the time, like converting letters into binary code.Encoding the number 4 into the tally mark format gives you '||||'.
Unary System (Base-1)A number system that uses only one symbol. To represent a number 'N'...
3
Core Syntax & Patterns
The One-to-One Rule
1 item = 1 tally mark ( | )
For every single item you count, you draw one single, vertical line. This is the most basic rule of tallying.
The 'Group of Five' Rule
The 5th mark is a diagonal slash across the first 4.
When you get to the fifth item, you don't draw another vertical line. Instead, you draw a diagonal line through the previous four (||||). This creates a bundle that is easy to see and count.
The Tallying Algorithm
1. For each item, draw a vertical mark. 2. If the count is a multiple of 5, make that mark a diagonal slash over the last four. 3. Start a new group for the next item.
This is the set of steps, like a computer program, that you follow every time to make sure your tally marks are correct. It's a simple loop...
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
Imagine a new computer system that uses a 'Hexa-Tally' where groups are based on 6 (five vertical lines and one horizontal line crossing them). How would the number 16 be represented in this system?
A.Two full groups of six and four single marks
B.Three full groups of six and two single marks
C.One full group of six and ten single marks
D.Sixteen single marks
Challenging
A program uses a `while` loop and a variable `count`. It processes a string of tally marks. The logic is: `while there are marks left: if the mark is '|', add 1 to count. if the mark is '/', add 1 to count.` What is a flaw in this logic for counting standard tally marks?
A.It will miss the diagonal marks entirely.
B.It will count the fifth mark in every group twice.
C.The program will crash because it can't read two types of marks.
D.It will undercount by missing the first mark of every group.
Challenging
The concept of using one symbol (`|`) repeatedly is called a unary system. The grouping slash (`/`) is a form of data compression for human eyes. Which statement best explains this 'compression'?
A.The slash makes the total number of marks smaller.
B.The slash allows the number to be stored in fewer bytes on a computer.
C.The slash replaces the difficult task of counting many individual items with the easier task of recognizing a single, familiar pattern (a group).
D.The slash physically shortens the length of the written tally marks.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free