Download presentation
Presentation is loading. Please wait.
1
Hardware is… Software is…
How would you define: A Computer Hardware Software A Computer is… …a machine which responds to instructions to complete a task. Hardware is… The collection of physical elements of a computer – can be touched Software is… The collection of computer programs providing instructions to a computer It cannot be touched
2
Place a H for Hardware or an S for Software in the box on each image
Hardware Or Software? Monitor Microsoft Word CD ROM USB Pen Drive Microsoft PowerPoint Keyboard Printer Speakers 10 (12) Windows 10 Mouse Microsoft Excel Web Cam
3
Storage Devices Storage devices are hardware that stores information for a computer to use. For example Hard drive Memory Cards DVDs
4
Achieve more than you ever thought possible today!
Introduction to Computing Starter 1 – Input, Output and Storage Devices Drag and drop the images into the correct category. Input Devices: Storage and Media Devices: Achieve more than you ever thought possible today! Output Devices: Use the website to help you.
5
3. Computer Network Know what these hardware devices do as part of a network: a server a router a network cable printer Know: What is a computer network? WAN Types of networks LAN The difference between a LAN and a WAN Benefits and issues with computer networks
6
Converting Binary to Denary Without a Table
Binary isn’t often set out in a neat table and you may see it in the following format: You can convert the number in the same way but will have to add the column headings yourself: 10101 16 8 4 2 1 = 21
7
Convert Binary to Denary Without a Table
16 8 4 2 1 = 18 32 16 8 4 2 1 = 59 32 16 8 4 2 1 = 62
8
Converting Denary into Binary
Write down the column headings for the binary number: Take each column from left to right. If the denary number to be converted is greater than or equal to the column heading, place a 1 in the column and subtract the value of the column from the denary value. If the denary value is smaller than the column heading, place a 0 in the column. 64 32 16 8 4 2 1
9
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 29 is less than 32 so put a 32 in the first column.
10
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 1 29 is more than 16 so put a 1 in the 16 column and find out the remainder. 29 – 16 = 13
11
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 1 1 13 is more than 8 so put a 1 in the 8 column and find out the remainder. 13 – 8 = 5
12
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 1 1 1 5 is more than 4 so put a 1 in the 4 column and find out the remainder. 5 – 4 = 1
13
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 1 1 1 1 is less than 2 so put a 0 in the 2 column.
14
Converting Denary to Binary
For example to convert the number 29 write the column headings: 32 16 8 4 2 1 1 1 1 1 1 is equal to the 1 column so put a 1 in the 1 column. Add up the columns to check you have the correct answer. = 29
15
Convert the Denary Numbers into Binary
32 16 8 4 2 1 54 – 32 = 22 54 = 1 1 1 1 22 – 16 = 6 6 – 4 = 2 2 – 2 = 0 = 54 32 16 8 4 2 1 25 = 1 1 1 25 – 16 = 9 9 – 8 = 1 = 25
16
Addition Rules for Binary
When adding with binary you need to remember certain rules: = = = = 10 (write down 0 and carry 1) = 11 (write down 1 and carry 1)
17
Adding with Binary 0 + 0 = 0 1 + 0 = 1 0 + 1 = 1 1 + 1 = 10 = 11 + 1 1 1 + 0 = 1 1 1 + 1 = 10 (carry the 1) 0 + 0 = 0 1 + 1 = 10 (carry the 1)
18
Adding with Binary 0 + 0 = 0 1 + 0 = 1 0 + 1 = 1 1 + 1 = 10 = 11 + 1 1 1 0 + 0 = 0 1 = 11 (carry the 1) 0 + 1 = 1 1 + 1 = 10 (carry the 1)
19
1 1 1 0 1 0 1 1 0 + Adding with Binary 1 1 1 0 + 0 = 0 1 + 0 = 1
0 + 1 = 1 1 + 1 = 10 = 11 =100 + 1 1 0 1 1 1 1
20
Checking your Calculations
You can check your binary calculations are correct by converting all the numbers to denary and then performing the sum in denary. Complete the sum below as usual and then check the answer by converting it to denary. = 13 + 1 1 0 = 19 2 + 4 = 6 1 1 1 = 19 1
21
Adding binary numbers + 1 + 1 + 1 + 1
22
IDLE When you start Python's built-in IDLE, you'll get an interpreter window first. This is for trying code out immediately. You'll see this prompt: >>> As long as the version you are using starts with 3, everything should work fine. To write a program, choose: File > New Window. Then you'll see this type of window (no prompt).
23
Mathematical Operators
Asterisk means “times”. Forward slash means “divide”. Double forward slash means “integer divide”. Double asterisk means “to the power of”. The percent sign gives you the remainder from doing the division. Walk through examples to see what happens and write operators in book.
24
Some more operators We use “==” to check if two things are the same.
When we ask Python if 2 equals 3, it replies “False”. We use “!=” to check if they are not equal. Less than & less than or equal to. Greater than and greater than or equal to. Get students to copy operators into their exercise books
25
Know the basic data types
String “hello” Integer 13 Float Boolean True / False OR AND NOT
26
Program error correction
print(“Hello everybody.”) name =int(input(“What is your name?”)) age = int(input(“What is your age?”)) print(“Your name is ”,name, “and your age is”, age, “.)
27
Our calculator program
The program explained #red writing is useful comments numb1 and num2 variables which will be located memory The variable ans is assigned the sum Gray 80% ans = ans will be printed as 22 22
28
Computer Programming Running our Python program
The stars are telling us we have not saved the program Save it as adding.py. Push F5 on the keyboard to run Gray 80%
29
Concatenate a string Strings can be joined to other variables using a (, ) comma Now try exercise two OR use a FUNCTION to convert the variable to a string Function should only be shown to higher ability ( )
30
IF statements Computer programmers can make programs that are so intelligent they can make decisions which can have a direct bearing on our lives; Critical systems such as computers on planes must react to conditions; OR simple programs like a login for a computer. By having a program structure that uses the comparative operator IF and Else This can give us a choice like a decision in a flowchart.
31
IF statement syntax What is syntax?
Syntax is the formal structure of program statements, like grammar. This is how a program would be written in PSEUDO code Pseudo code is the program written in a form close to English but it is not programming code. IF a > b Do something ELSE a < b Do something else
32
A simple IF program Pseudocode IF a > b Do something ELSE a < b
If a is greater than b (>) else a is less than b (<) elif
33
A simple IF program This is the output to the program
34
The syntax explained What are a and b examples of?
What is the output (print statements) an example of? What are the key words in purple examples of? What does the writing in red do? What do you think the purpose of the colon is? The syntax explained Input the two variables Note the colon Print if a is the biggest Print if a is the smallest
35
Spot the errors
36
Program error correction
Correct this program so it will run without syntax errors. Remember that: capital letters or lower case letters are important. They must be right. Think about if the data types are correct. Make sure that the number of brackets are even, two or four. Print(“Hello everybody.”) name = int(input(“What is your name?”)) age = int(input(“What is your age?”) print(“Your name is ”,name, “and your age is”, age, “.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.