Number and Character Coding System
Khan Academy: Number system and conversion
Video tutorial https://www.youtube.com/watch?v=aW3qCcH6Dao
3.1 Denary (Base 10), BInary (Base 2) and Hexadecimal Number (Base 16) systems
Transmission Speeds
Signed and magnitude: The leftmost bit is known as signed bit that specifies the sign of a binary integer.
4 bit representation of integer using different method
4-bit
43 = 00101011
-43 sign & mag : 10101011
Express 43 in 2's complement (8 bits)
Method 1:
For -ve number, the first bit must be 1 (-128)
- 43 = -128 + 85
Convert 85 into binary (8-1 bits) : 1010101
2's complement: 11010101
Method 2
Example: The 8-bit representation of -43 using 2's complement
Step 1: Convert 43 to binary. 43 = 101011
Step 2: Add leading 0 up to 8-bit: 00101011
Step 3: Inverted all the bits 11010100 (1's complement)
Step 4: Add 1 to the bit pattern: 11010101
Activity 2 on P.89
Class work
Find out the 8-bit representation of -59, -110, -83 using 2's complement, signed and magnitude.
Try out: the 8-bit representation of -130 using 2's complement, signed and magnitude.
Practical 1
Using Google Spreadsheet or excel, tryout the following functions. (P.98-99 of texbook). Share the document to public and submit the hyperlink.
After completing the worksheet, please share your google sheet by putting your file in the share folder.
3.4 Addition and subtraction of different number representations
Class work:
2's complement
Addition
Nov 20 (Day 10):
Activities 4 (P.99)
Homework / Classwork:
P.104 - 106 (Do it on an exercise book) ALL questions except LQ 2a (we do it in class)
Practical on Flash. (chapter 4: multimedia)
Short test on Nov 26 (Day 4) - Test on Chapter 3
3.5 Character coding systems
GB, Big 5, Unicode are compatible with ASCII
P.107 Long questions
Q1.
床前明月光,疑是地上霜。舉頭望明月,低頭思故鄉。
P.103 Self-assessment corner (homework - submit on