COMPUTER TECH with Mr. Mills
Learning Goals
1.1 📺 How Computers Work
1.2 📺 What Makes a Computer a Computer?
1.3 📺 Binary and Data
Computer
A device that manipulates data. It has the ability to store, retrieve, process and output data. Smartphones, laptops, tablets, smartwatches, and TVs are all examples of computers.
Use information from the videos you just watched to answer these 3 questions.
What four things do all computers have in common?
What language do computers speak?
How does a computer create pictures/images using this language?
2.5 🎮 2048 (Game) - Get a score of at least 1024!
Bit
The smallest unit of data a computer can handle. There are two possibilities, either 1 (on) or 0 (off). The number of possibilities provided by n-bits is calculated by 2ⁿ (where "n" is the number of bits).
Evaluate these statements:
a. 2¹ = ? = ?
b. 2² = ? = ? x ?
c. 2³ = ? = ? x ? x ?
d. 2⁴ = ? = ? x ? x ? x ?
e. 2⁵ = ? = ? x ? x ? x ? x ?
f. 2⁶ = ? = ? x ? x ? x ? x ? x ?
a. 2⁷ = ? = ? x ? x ? x ? x ? x ? x ?
a. 2⁸ = ? = ? x ? x ? x ? x ? x ? x ? x ?
What is the minimum number of bits you would need to represent all of the possibilities for each of the following:
a. A light switch
b. Any 3 digit number (up to 999)
c. A letter grade (A to F) you could get on a test
d. Any student's two letter initials (e.g. K.M.)
e. Any 8 digit high score on a video game
f. The time on a 24-hour clock (hh:mm)
3.3 📖 Write these definition in your notebook
Base 2
The binary counting system, uses only two symbols (0, 1)
Base 10
The decimal counting system, uses ten symbols (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
4.5 📝 Complete this question in your notebook!
Describe, in full sentences, how you would help a friend convert any 8-bit binary number to it's decimal equivalent. You can use diagrams and example problems to explain.
4.6 🎮 Binary Game (CISCO) - Get a score of at least 10,000
Computers can also work with negative numbers, but binary has no negative sign to work with. All they have to represent numbers are 0’s and 1’s. How do you think computers represents negative numbers using only 0s and 1s? Describe your own methodology and provide 3 example of positive and negative numbers. Do not Google this question, you are inventing a strategy yourself!
Computers can work with decimals as well (that is, they can do arithmetic with numbers like 5.6 or 3.12, not just whole numbers/integers). How do you think they represent decimal numbers if all they have is 0’s and 1’s? Describe your own methodology and provide 3 examples of what it could look like. Do not Google this question, you are inventing a strategy yourself!
5.5 📖 Write these definitions in your notebook
Encoding Table
An agreed upon way to “assign” characters (letters, numbers, symbols, etc.) to binary numbers so more things can be said with binary
ASCII
American Standard Code for Information Interchange - an old 7-bit encoding table that was used to letters in the English alphabet, numbers 0-9, and some simple punctuation. It lives on today as the first 128 characters in UTF.
UTF
Unicode Transformation Format - The modern solution that uses a minimum of 8 bits (and sometimes up to 32 bits) to encode almost all characters that humans use to communicate!
5.6 📝 Complete these questions in your notebook!
Write your full name using the ASCII/UTF binary encoding table. Seperate each 8-bit number with a space. Underline each set of 8-bits and write the ASCII/UTF character underneath.
5.8 ⭐ Extension Task
Explain the problem that ASCII poses for international computer users who may speak a different language other than English. What does Unicode/UTF do to address this problem? Do you think this is a good fix?
6.5 📖 Write these definitions in your notebook
Base 16
The hexadecimal counting system, uses sixteen unique characters (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F)
6.6 📰 Why is sixteen so sweet? (NASA)
6.7 🎮 Flappy Bit, Game - Get a score of at least 10₁₆
6.9 📝 Complete these questions in your notebook!
Using your answer form Lesson 5 Question #1, write your full name as an ASCII-encoded string in Base 2 and Base 16.
Why is Base 16 used by programmers and computer scientists?
What advantages does Base 16 have over other counting systems?
What do you think a Base 4 counting system would look like? What about Base 8? How about Base 64? What would the first 50 decimal numbers look like in each system?
Video tutorials to help you if you're stuck!
Be prepared to demonstrate the following concepts:
Convert between binary and decimal
Convert between binary and hexadecimal
Convert between decimal and hexadecimal
Here are some practice resources in addition to the lesson material above:
7.1 🔗 Create a pixel art creation in each of the bit modes and write down the binary representations for each of your creations (e.g. for 1 bit mode: 1001000010011111)
7.6 📖 Write these definitions in your notebook
RGB
Red, green, blue - the primary colours of Additive Colour Theory, can be combined with different intensities to make all colours of the rainbow
Pixel
The smallest unit of a digital image, can be made out of different materials such as liquid crystal (LCD) or light-emitting diodes (LED)
Sub-Pixel
The segments within a single pixel, generally made up of individually controlled red, green and blue LEDs that can be dimmed independently
7.7 📝 Complete these questions in your notebook!
Match the following hex codes to their colour names:
Hex Codes
#C40000, #000000, #00FFFF, #00FF00, #750075, #AAAAAA, #FFFF00, #333333, #9999FF, #FFFFFF
Colour Names
White, Light Grey, Dark Grey, Black, Green, Dark Red, Light Blue, Yellow, Cyan, Purple
7.10 🎮 Huedle
7.11 🎮 What the Hex?
8.1 📖 Write these definitions in your notebook
Byte
A unit of data consisting of 8 bits. This number of bits has a special name because it is a power of 2, and 256 possibilities cover a lot of use cases in computing.
kilobyte (kB)
1,000* bytes or 8,000 bits - about a paragraph of ASCII/UTF text or a small 64px x 64px icon
Megabyte (MB)
1,000* kilobytes or 1,000,000 bytes - about the average movie script typed in ASCII/UTF or the average image post on instagram
Gigabyte (GB)
1,000* megabytes or 1,000,000,000 bytes - about the size of 14 songs from a CD album or the average 24 minute TV show streamed from the internet
Terabyte (TB)
1,000* gigabytes or 1,000,000,000,000 bytes - about the size of a standard desktop PC hard drive or all of the episodes in a TV show with several seasons
8.4 📝 Complete these questions in your notebook!
Your phone has 2.5GB of storage left. You download a game that is 1.2GB. How much storage is available after the download?
A USB flash drive has a capacity of 3.9GB. If you copy a 400MB file to it, how much free space remains?
You take 250 photos, each 6MB in size. How much storage is would these photos take up?
A backup system has 4.4TB of total storage. If you add 700GB of files, how much storage remains in TB?
Your internet speed allows you to download 12MB per second (12MB/s). How long would it take to download an episode of a TV show that takes up 173MB?
In this assignment, you'll send a classmate a short text message accompanied by a simple picture. The catch is that you will be sending this message in binary, requiring you to "encode" your text and image data into 1s and 0s. You'll receive a binary sequence from another classmate for you to "decode" from binary back into ASCII/UTF text and 24-bit RGB image data. The whole process requires knowledge and understanding of the counting systems we've learned so far (Base 2 and Base 16, as well as your existing knowledge of Base 10), the encoding tables for text, and the sub-pixel channels for RGB colour.