0% found this document useful (0 votes)
87 views8 pages

Comprog1 - Module 3

This document contains a lesson plan on number systems for 11th grade computer programming students. It includes objectives, activities, and assessments to teach students about different number systems like binary, decimal, octal and hexadecimal. Students will learn to convert between binary and decimal numbers using various methods. The lesson defines the different number systems and provides examples for converting numbers between binary and decimal representations.

Uploaded by

emmanuel sim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views8 pages

Comprog1 - Module 3

This document contains a lesson plan on number systems for 11th grade computer programming students. It includes objectives, activities, and assessments to teach students about different number systems like binary, decimal, octal and hexadecimal. Students will learn to convert between binary and decimal numbers using various methods. The lesson defines the different number systems and provides examples for converting numbers between binary and decimal representations.

Uploaded by

emmanuel sim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SHS

GRADE
11

COMPUTER PROGRAMMING .NET 1


QUARTER 1- MODULE 3

Use Mathematical Concepts and


Techniques

Name: _______________________________________________________________________

Grade Level & Section: __________________________________________________________

Subject Teacher: _______________________________________________________________


OBJECTIVES:

After this lesson, you will be able to answer the following questions:
 What are the various number systems?
 How to convert binary to decimal and vice versa.

ROUSING ACTIVITY

INQUIRY QUESTIONS:
Directions: Read the given questions below and answer each item by expressing your own
ideas in 2 – 3 sentences per item.

1. How would you describe number systems in your own words?


2. How does number systems help you in your daily living?

1. _________________________________________________________________________________

________________________________________________________________________________

________________________________________________________________________________

________________________________________________________________________________

_______________________________________________________________________________.

2. _________________________________________________________________________________

________________________________________________________________________________

________________________________________________________________________________

________________________________________________________________________________

_______________________________________________________________________________.

1
PRE-TEST

Direction: Encircle the letter of the correct answer.

1. It is also called numeral system.


a. Number Systems b. Decimal
c. Binary d. Octal Number System

2. A number system that uses a notation in which each number is expressed in base 10.
a. Number Systems b. Decimal
c. Binary d. Octal Number System

3. A numeric system that only uses two digits — 0 and 1.


a. Number Systems b. Decimal
c. Binary d. Octal Number System

4. The number system whose base is 8.


a. Number Systems b. Decimal
c. Binary d. Octal Number System

5. A numeral system made up of 16 symbols (base 16)


a. Number Systems b. Decimal
c. Binary d. Hexadecimal Number System

2
LESSON PROPER

Number Systems
Number systems are also called numeral system. Number
system is any notation that represents numerals or numbers.

Decimal
A number system that uses a notation in which each number is
expressed in base 10 by using one of the first nine integers or 0
in each place and letting each place value be a power of 10.
Base 10 (Decimal) — Represent any number using 10 digits [0–9]

Binary
Binary (or base-2) a numeric system that only uses two digits 0
and 1 Computers operate in binary, meaning they store data and
perform calculations using only zeros and ones. A single binary
digit can only represent true (1) or False (0) in Boolean logic.
However, multiple binary digits can be used to represent large
numbers and perform complex functions. In fact, any integer can
be represented in binary.
Base 2 (Binary) — Represent any number using 2 digits [0–1]

Octal Number System


The number system whose base is 8 is known as the octal number system. The base 8 means the
system uses eight digits from 0 to 7.
Base 8 (Octal) — Represent any number using 8 digits [0–7]

Hexadecimal Numeral System


The hexadecimal numeral system, also known as just hex, is a numeral system made up of 16
symbols (base 16). There are no symbols that mean ten, or eleven etc. so these symbols are
letters taken from the English alphabet: A, B, C, D, E and F. Hexadecimal A = decimal 10, and
hexadecimal F = decimal 15.

3
Conversion of Binary to Decimal
To convert a binary number to decimal number, multiply each value of the, where x is the ordinal
bit number – 1 then add them altogether.
There are 2 methods you can use in converting Binary to Decimal.

 Method 1: Using Positions


Step 1: Write down the binary number.
Step 2: Starting with the least significant digit (the rightmost one), multiply the digit by the value of
the position. Continue doing this until you reach the most significant digit (the leftmost one).
Step 3: Add the results and you will get the decimal equivalent of the given binary number.
Note: 20 is always equivalent to 1.
Note: Always remember to put the Power of 10 in your final answer.
Example #1
Now, let's apply these steps to, for example, the binary number above, which is 1010 2
- (1 ) + (0 ) + (1 ) + (0 )
Step 1:
Write down 1010 and determine the positions, namely the powers of 2 that the digit belongs to
- (1 X 2) + (0 X 2) + (1 X 2) + (0 X 2)
Step 2:
Represent the number in terms of its positions.
- (1 X 23) + (0 X 22) + (1 X 21) + (0 X 20)
Step 3:
(1 X 8) + (0 X 4) + (1 X 2) + (0 X 1)
= 8 + 0 + 2 + 0 = 10
Therefore
10102 = 1010

Example #2
11012 to ____________
11012 = (1 X 23) + (1 X 22) + (0 X 21) + (1 X 20)
= (1 X 8) + (1 x 4) + (0 x 2) + (1 x 1)
= (8) + (4) + (0) + (1)
= 1310
Note: Always remember to put the Power of 10 in your final answer.

4
 Method 2:
number sequence: …, 128, 64, 32, 16, 8, 4, 2, 1 (binary bit by the powers of two)
7th, 6th, 5th, 4th, 3rd, 2nd, 1st, 0 (binary bit position)
If the binary has 0, cancel the 0 already.

Conversion of Decimal to Binary


Conversion steps:
1. Divide the number by 2.
2. Get the integer quotient for the next iteration.
3. Get the remainder for the binary digit.
4. Repeat the steps until the quotient is equal to 0.
Note: Count the remainder upwards to get the binary.

5
ACTIVITIES

Direction: Encircle the letter of the correct answer.

1. A numeral system made up of 16 symbols (base 16)


a. Number Systems b. Decimal
c. Binary d. Hexadecimal Number System
2. A numeric system that only uses two digits — 0 and 1.
a. Number Systems b. Decimal
c. Binary d. Octal Number System
3. A number system that uses a notation in which each number is expressed in base 10.
a. Number Systems b. Decimal
c. Binary d. Octal Number System
4. The number system whose base is 8.
a. Number Systems b. Decimal
c. Binary d. Octal Number System
5. It is also called numeral system.
a. Number Systems b. Decimal
c. Binary d. Octal Number System

ASSESSMENT A

Direction: Convert the following binary numbers into decimal numbers using Method 1. Write
your solutions below.
A. 11011 2

B. 1011 2

C. 1111 2

D. 11111 2

E. 111011 2

ASSESSMENT B
Direction: Convert the following binary numbers into decimal numbers using Method 2. Write
your solutions below.
A. 10010 2

B. 10111 2

C. 11101 2

D. 110101 2

E. 11010101 2

ASSESSMENT C

Convert the following decimal numbers into binary numbers.


A) 25 B) 6 C) 40 D) 128 E) 29 F) 13 G) 254
H) 194 I) 55 J) 61

REFERENCES:

[Link]
[Link]
[Link]
Innovative Training Works, Inc. (2016) Computer Programming Vol. 1, Rex Bookstore Inc. Rex
Publishing Inc.

Common questions

Powered by AI

Hexadecimal systems simplify complex number representations because they use a base of 16, allowing larger numbers to be represented with fewer digits compared to binary. Each hexadecimal digit represents four binary digits (bits), so translating binary to hexadecimal condenses data significantly, making it easier to read and less error-prone when handling large amounts of data. For example, the binary number 1111 is simply represented as ‘F’ in hexadecimal .

Octal and hexadecimal systems are directly interconnected with binary systems because their bases (8 and 16, respectively) are powers of 2, facilitating straightforward conversion between them and binary. Each octal digit corresponds to three binary digits, while each hexadecimal digit corresponds to four binary digits. This relationship simplifies the processing and display of data within digital systems and minimizes errors in data conversion, which is critical for activities that require accurate and efficient data interpretation, like computer programming and digital electronics .

Understanding number systems impacts technological and computational applications significantly as it underpins various digital technologies used daily, such as computing devices and telecommunications. The binary system, in particular, is essential for coding and arithmetic operations used in software development, algorithm efficiency, and data encryption. Furthermore, decimal and hexadecimal systems facilitate user-friendly data representation and system interoperability in technologies like cryptography and network addressing .

The primary challenges in converting large binary numbers to decimal include computational complexity, potential arithmetic errors, and time consumption. These issues can be addressed by using systematic approaches like the positional multiplication method, leveraging software tools for accuracy, and breaking down the problem into smaller sections. Understanding and applying methods such as calculating binary position weights can also enhance precision in conversions .

Mathematical concepts such as number systems are foundational in software development and algorithms, enabling efficient data processing and resource management. Binary numbers form the basis of instruction sets in programming languages, directly correlating to how machines execute commands. Higher-level numeric representations such as hexadecimal simplify debugging and documentation efforts. Mastery of number systems allows developers to optimize algorithms for speed and space, enhancing application performance and scalability .

The octal system is advantageous in digital circuits because of its simplicity, bridging easier conversion from binary and lessening the amount of data by reducing digit count. Additionally, it aligns with byte-based systems in computer architecture effectively. However, its disadvantages include its infrequent use in modern technology compared to binary and hexadecimal systems, mostly due to limited software support and more complex encoding for human operators unless applied in niche areas .

Number systems like binary and decimal are essential for computer operations because computers inherently use binary (base-2) to process data and execute commands, as they operate using two distinct states often represented as 0 and 1. Binary systems allow computers to perform calculations and logical operations using these two states. Meanwhile, humans use the decimal system (base-10) in everyday life, necessitating conversion between binary and decimal to interpret computer results and input instructions accurately .

To convert a binary number to decimal using the positional method: 1) Write the binary number and note each digit’s position as a power of 2, starting from the right with 2^0. 2) Multiply each binary digit by its positional value. 3) Sum all the results to get the decimal equivalent. For example, for binary 1101, calculate (1x2^3) + (1x2^2) + (0x2^1) + (1x2^0) to arrive at the decimal number 13 .

To convert a decimal number to binary using the division-remainder method: 1) Divide the decimal number by 2. 2) Record the remainder as the least significant bit (LSB). 3) Use the quotient as the new dividend. 4) Repeat the process until the quotient is 0. 5) The binary number is formed by the recorded remainders read in reverse order. For instance, converting 25 involves dividing by 2 yielding remainders of 1, 0, 0, 1, and 1, resulting in the binary number 11001 .

The hexadecimal system benefits data representation in computer programming and digital electronics by providing a compact form for representing large binary codes, effectively reducing human error when reading and writing complex binary sequences. Each hexadecimal digit directly corresponds to a 4-bit binary, enabling efficient conversion and reducing memory usage. This system is crucial for memory addresses, color coding in graphics, and packet structuring in networks, where clear and concise data representation is essential .

You might also like