Professional Documents
Culture Documents
LG1 - Introduction To Computer Programming
LG1 - Introduction To Computer Programming
grade
Visual Basic
Computer Grade 10
PRAYER
Loving Father,
Come be with us today
Fill our hearts with joy
Fill our minds with learning
Fill our lessons with fun
Fill our friendships with kindness
Fill our school with love
Help us grow in love and kindness
more like Jesus everyday
Amen.
INPUT PROCESS OUTPUT
Approach
Is a pattern or approach that is widely used in systems
for transforming input data into output.
Proces
Input Output
s Input – is any data entered into the computer system.
Programmer
is the one who writes, develops, and debugs a computer
Programming Language
it is a tool that is used by the programmer to communicate with the computer
—Harold Abelson
Classifications of
Programming
Languages
1. Machine language
A computer is an electronic machine it can only feel electricity and is
designed to work with information. It cannot understand human languages
but instead it uses the binary language or machine languages. It consists of
only 2 number, 1 and 0.
2. Assembly language
maintenance Design
Implementatio
Deployment n
Testing and
Debugging
Classification of Program Bugs
10101
Step 2: Multiply each digit of the binary number by the corresponding power of two.
10101 (2) = 16 + 0 + 4 + 0 + 1
10101 (2) = 16 + 0 + 4 + 0 + 1
10101 (2) = 21
10001
Step 2: Multiply each digit of the binary number by the corresponding power of two.
10001 (2) = 16 + 0 + 0 + 0 + 1
10001 (2) = 16 + 0 + 0 + 0 + 1
10001 (2) = 17
2 14 1
Step 2: Divide the number by 2
2 7 0
Step 3: Write the result underneath
2 3 1
Step 4: Write the remainder on the right hand
side. This will be 0 or 1. 1
2 1
Step 5: Divide the result of the division by 2
again, write down the remainder. 0 1
2 7 0
0 1 MSB
Therefore 11101 is the binary equivalent of
29
Converting Decimal to Binary
Step by step Solution
Remainders
Step 1: Write down the decimal number 2 14
2 7 0
Step 2: Divide the number by 2
2 3 1
Step 3: Write the result underneath
2 1 1
Step 4: Write the remainder on the right hand
side. This will be 0 or 1. 1
0
Step 5: Divide the result of the division by 2
again, write down the remainder.
2 7 0 LSB
0 1 MSB
Therefore 1110 is the binary equivalent of
14
Asynchronous Activity
A. Convert the following decimal numbers into binary numbers
1. 15110
2. 3510
3. 4310
4. 25110
5. 102310
6. 11110101100111102
7. 1010012
8. 1012
9. 111112
10. 11002