Conversion of Number Bases Decimal to Binary, Octal, and Hexadecimal Computer Studies JSS 2 First Term Lesson Notes Week 10
Lesson Plan for Computer Studies
Subject: Computer Studies
Class: JSS 2
Term: First Term
Week: 10
Age: 12 years
Topic: Conversion of Number Bases
Sub-topic: Decimal to Binary, Octal, and Hexadecimal
Duration: 40 minutes
Behavioral Objectives:
By the end of the lesson, students should be able to:
- Convert numbers from decimal to binary and vice versa.
- Convert numbers from decimal to octal and vice versa.
- Convert numbers from decimal to hexadecimal.
- Explain the steps involved in each conversion process.
Keywords:
- Conversion
- Decimal
- Binary
- Octal
- Hexadecimal
Set Induction:
Ask students: “How do computers understand numbers?” Discuss the importance of number systems in computing and how conversions play a crucial role.
Entry Behavior:
Students have a basic understanding of number bases and how they relate to computing.
Learning Resources and Materials:
- Whiteboard and markers
- Handouts with conversion methods
- Calculators
Building Background/Connection to Prior Knowledge:
Review previous lessons on number bases and ensure students are familiar with decimal, binary, octal, and hexadecimal systems.
Embedded Core Skills:
- Analytical thinking
- Problem-solving
- Numeracy skills
Learning Materials:
- “Computer Studies for Junior Secondary Schools” by P. Olanrewaju
- Lagos State Scheme of Work
Instructional Materials:
- Visual aids showing conversion charts
- Worked examples for each conversion type
Content:
- Introduction to Number Base Conversion:
- Explain the importance of converting numbers between bases in computing.
- Conversion from Decimal to Binary:
- Method: Successive division by 2.
- Example: Convert decimal 10 to binary.
- 10 ÷ 2 = 5 (remainder 0)
- 5 ÷ 2 = 2 (remainder 1)
- 2 ÷ 2 = 1 (remainder 0)
- 1 ÷ 2 = 0 (remainder 1)
- Read remainders from bottom to top: 1010.
- Conversion from Binary to Decimal:
- Method: Multiply each digit by its power of 2.
- Example: Convert binary 1010 to decimal.
- (1×2³) + (0×2²) + (1×2¹) + (0×2⁰) = 8 + 0 + 2 + 0 = 10.
- Conversion from Decimal to Octal:
- Method: Successive division by 8.
- Example: Convert decimal 65 to octal.
- 65 ÷ 8 = 8 (remainder 1)
- 8 ÷ 8 = 1 (remainder 0)
- 1 ÷ 8 = 0 (remainder 1)
- Read remainders: 101.
- Conversion from Octal to Decimal:
- Method: Multiply each digit by its power of 8.
- Example: Convert octal 101 to decimal.
- (1×8²) + (0×8¹) + (1×8⁰) = 64 + 0 + 1 = 65.
- Conversion from Decimal to Hexadecimal:
- Method: Successive division by 16.
- Example: Convert decimal 255 to hexadecimal.
- 255 ÷ 16 = 15 (remainder 15, which is F)
- 15 ÷ 16 = 0 (remainder 15, which is F)
- Result: FF.
- Conversion from Hexadecimal to Decimal:
- Method: Multiply each digit by its power of 16.
- Example: Convert hexadecimal FF to decimal.
- (F×16¹) + (F×16⁰) = (15×16) + (15×1) = 240 + 15 = 255.
Fill-in-the-Blank Questions (15):
- To convert decimal to binary, we use __________ division. (a) 2 (b) 8 (c) 10 (d) 16
- The binary equivalent of decimal 5 is __________. (a) 101 (b) 100 (c) 110 (d) 111
- The octal system is base __________. (a) 2 (b) 8 (c) 10 (d) 16
- When converting decimal 64 to octal, the first division gives a quotient of __________. (a) 8 (b) 6 (c) 10 (d) 4
- The hexadecimal system uses digits from 0 to __________. (a) 9 (b) F (c) 8 (d) A
- Decimal 15 is represented as __________ in hexadecimal. (a) E (b) F (c) D (d) C
- The octal equivalent of binary 101 is __________. (a) 2 (b) 3 (c) 5 (d) 4
- To convert hexadecimal A to decimal, we calculate __________. (a) 10 (b) 11 (c) 12 (d) 9
- The binary representation of decimal 12 is __________. (a) 1100 (b) 1010 (c) 1110 (d) 1000
- To convert decimal 32 to binary, the last remainder is __________. (a) 0 (b) 1 (c) 2 (d) 3
- The number system that uses base 16 is __________. (a) Decimal (b) Binary (c) Octal (d) Hexadecimal
- The octal number 7 is the same in decimal as __________. (a) 6 (b) 7 (c) 8 (d) 9
- The conversion of binary 1111 to decimal is __________. (a) 10 (b) 11 (c) 12 (d) 15
- When converting from octal to decimal, we multiply by __________. (a) 2 (b) 8 (c) 10 (d) 16
- The decimal number 255 converts to __________ in hexadecimal. (a) FF (b) F0 (c) 0F (d) 10
FAQs (15):
- What is base conversion?
Base conversion is the process of changing a number from one base to another. - Why do we convert decimal to binary?
Computers use binary, so we need to convert decimal numbers for computer processing. - How do you convert decimal to octal?
Divide the decimal number by 8 and record the remainders. - What does binary 1101 equal in decimal?
Binary 1101 equals 13 in decimal. - What is the octal representation of decimal 9?
Decimal 9 is represented as 11 in octal. - How is hexadecimal used in programming?
Hexadecimal simplifies binary and is used for color codes in web design. - What is the first step in converting decimal to binary?
Divide the decimal number by 2. - Can you convert octal to binary directly?
Yes, each octal digit can be represented by a 3-digit binary number. - How do you convert hexadecimal to decimal?
Multiply each digit by its power of 16 and sum the results. - What is the binary equivalent of octal 10?
Octal 10 is represented as 1000 in binary. - Why is it important to learn number base conversions?
Understanding conversions is essential for programming and computer science. - What does the hexadecimal number B represent in decimal?
Hexadecimal B represents 11 in decimal. - How do you check your conversion is correct?
Convert the result back to the original base and see if you get the same number. - Can all numbers be converted to binary?
Yes, all numbers can be represented in binary. - What is the octal equivalent of decimal 16?
Decimal 16 is represented as 20 in octal.
Presentation Steps:
- Revising the Previous Topic: Recap previous discussions on number bases.
- Introducing the New Topic: Explain the significance of conversions and introduce each method step-by-step.
- Allowing Pupils to Contribute: Invite students to share any experiences or difficulties they have had with conversions.
Teacher’s Activities:
- Demonstrate each conversion method clearly on the whiteboard.
- Guide students through examples.
- Answer questions and provide clarification as needed.
Learners’ Activities:
- Work in pairs to practice conversions using provided numbers.
- Complete fill-in-the-blank questions and discuss their answers.
- Perform conversion exercises on calculators.
Assessment:
- Evaluate student understanding through fill-in-the-blank and conversion exercises.
- Assign a quiz on conversions for homework.
Evaluation Questions (10):
- What is the first step in converting decimal to binary?
- How do you convert octal to decimal?
- What is the binary equivalent of decimal 8?
- Give an example of converting hexadecimal to decimal.
- What does binary 1010 equal in decimal?
- How is decimal 45 represented in octal?
- What is the remainder when 16 is divided by 2?
- How do you know if a conversion is correct?
- What is the base of the hexadecimal system?
- Why is binary important in computing?
Conclusion:
Summarize the key points about number base conversions and their importance in computer science. Emphasize practice and application in real-world scenarios. Mark the exercises and provide feedback for improvement.