Wednesday - ICT Tuition

Download Report

Transcript Wednesday - ICT Tuition

PYTHON PROGRAMMING
Week 14 – Webnesday
STARTER
Have a go at this game:
http://bit.ly/1gSb6yN
YESTERDAY
Bitwise operators
Can we list them all and explain what they do?
TODAY
Binary addition
Binary multiplication
Hexadecimal (base 16)
 Denary to hex
 Hex to denary
BINARY ADDITION
How do you think we add in binary?
BINARY MULTIPLICATION
How do you think we do this?
Clue – it’s much the same as denary
HEXADECIMAL
What is hexadecimal?
Why use hexadecimal?
Converting denary to hex and hex to denary
Now have a go at this: http://bit.ly/ZzI17W
EXERCISES
See sheets on web site
PYTHON PRACTICAL
Complete the bitwise operator exercises
Codecademy
 Where are you?
 What is your target for this week?
PLENARY
How do we do addition and multiplication in binary?
What is hexadecimal
Why use it
How do we convert from denary to hex and back?
NEXT WEEK
Twos complement
Some games!
Exam revision
HOMEWORK
Watch these two videos on twos complement:
 http://bit.ly/1tGGc1c
 http://bit.ly/1zRQSMF
Can you find any better resources on twos complement?