1.03 - Understand the interaction between computer hardware and software CS Middle Schools
Essential questions What language do computers use when communicating? What is the process for communication between hardware and software?
Binary code Binary code is a numeric system that only uses two digits — 0 and 1. Computers store data and perform calculations using only zeros and ones. 1 = True 0 = False OR 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101 00001010 = I love you
bOOLEAN a subset of algebra used for creating true/false statements. Used for single binary data to represent true (1) or false (0). Int A = 5 IF (A == 5) A = TRUE ELSE A = FALSE
DATA information processed or stored by a computer. At its most rudimentary level, computer data is in binary format (a numeric system that only uses two digits: 0 & 1). Letters (a, t, z…) Numbers (12, 24, 16…) Symbols (&, @, #...) Sounds (Music…) Images (Selfie, videos…)
Programming language a set of commands, instructions, and other syntax used to create a software program. Examples: Java, C#, C++, PHP, Python, Ruby, etc.)
= Programming language Programming programs are used to translate binary code into an easier understandable language for users. Imagine how long it would take to type the words “I love you” in binary code! 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101 00001010 = I love you
Syntax general set of rules for how declarations, functions, commands, and other statements should be arranged in a programming language. Syntax Error If you do not follow syntax rules defined by the programing language then at the time of compilation you will get syntax error and program will not work.
Computer Process for communication Central Processing Unit (CPU) is the primary component of a computer that processes instructions. Inside CPU: Arithmetic Logic Unit (alu) a fundamental component of all processors. Performs arithmetic and logic operations.
Computer Process for communication
Computer Process for communication Input from hardware (mouse, keyboard, etc.) is sent to the cpu. The CPU executes those instructions and translates it to binary code (0s and 1s). The cpu then performs mathematical operations with the help of the ALU. Data is moved from memory area to another. Decisions are made and a new set of instructions are made to create output.