Number Base System

Number Base System JSS 2

What is Number Base System?

Number base system is a collection of symbols and rules for representing both small and large numbers.
There are many number systems used today, some are examined below.

Binary Number System

The binary number system is the number system in base 2. There are only two symbols in this system, which are 0 and 1.

Octal Number System

Octal or Oct means eight (8). Hence, the Octal Number System is a number system in base 8. There are eight (8) symbols used in this system. They are: 0, 1, 2, 3, 4, 5, 6, and 7

Decimal or Denary Number System

The decimal Number System is a number system in base ten (10). Ten symbols are used in this system. They include: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9

Hexadecimal Number system

Hex and decimal represent 6 and 10 respectively. Therefore, the hexadecimal number system is a number system in base 16. The symbols used are; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. It is important to note that letters A, B, C, D, E and F represent the decimal values of 10, 11, 12, 13, 14 and 15 respectively.

Conversion From One Number Base System To Another

Binary to Decimal Number Conversion

To convert from binary to Decimal number system multiply each binary digit by 2 in an increasing power (right to left) and sum the result.

Example 1
Convert 11011012 to a decimal number.
Solution
11011012
= (1×26)+(1×25)+(0×24)+1×23+1×2 2+0×21+1×20

= 1×64+1×32+0×16+1×8+1×4+0×2+1x1
= 64+32+0+8+4+0+1
= 109
Therefore 11011012 = 10910

Example 2
Convert 101110011.11012 to decimal
Solution
101110011.11012
=1×28+0×27+1×26+1×25+1×24+0×23+0×22+1×211+1×20+1×2-1+1×2-2+0×2-3+1×2-4
=1×256+0×128+1×64+1×32+1×16+0×8+0×4+1×2+1×1+1×1/4+1×1/8+0×1/16+1×1/32
=256+0+64+32+16+0+0+2+1+1/4+1/8+0+1/32
=467+0.25+0.125+0+0.03125
=371.40625
Therefore 101110011.11012 = 371.4062510

Conversion from Decimal System to Binary System

To convert from a decimal system to a binary number system, Simply continue to divide the given decimal number by two (2) and write down the remainder until it becomes zero (0).
Example 1
Convert 10910 to binary
Solution
2 109 Remainder
2 54 1
2 27 0
2 13 1
2 6 1
2 3 0
2 1 1
2 0 1

Picking the remainder from bottom to top we have 1101101
Therefore, 109 10 = 11011012

Conversion from Octal Base System to Decimal Base System


To convert from an octal base system to a decimal base system, multiply each digit by eight (8) in an increasing power (right to left) of and sum up the result.

Example 1
Convert 3456 base 8 to base ten
Solution
= (3×83) + (4×82) + (5×81) + (6×80)
= (3×512) + (4×64) + (5×8) + (6×1)
= 1536 + 256 + 40 + 6
= 1838
Therefore 34568 = 183810

Conversion from Decimal to Octal Base System

To convert from a decimal system to an Octal base system, simply divide the given decimal number by eight (8) and write down the remainder until it becomes zero (0).

Example 1
Convert 183810 to Octal
Solution
8 1838 Remainder
8 229 6
8 28 5
8 3 4
8 0 3
2 3 0

Pick the remainder from bottom to top to get your final answer
Therefore 183810 = 34568

Conversion from Hexadecimal base System to Decimal Base System

To convert from a hexadecimal base system to a decimal base system, multiply each digit by sixteen (16) in an increasing power (right to left) and sum the result.

Example 1
Convert 89F16 to decimal
Solution
89F16
= (8×162) + (9×161) + (F×160)

= (8×162) + (9×161) + (15×160)
= (8×256) + (9×16) + (15×1)
= 2048 + 144 + 15
= 2207
Therefore 89F16 = 220710

Example 2
Convert CAFE16 to decimal
Solution
CAFE16
= (C×163) + (A×162) + (F×161) + (E×160)

= (12×163) + (10×162) + (15×161) + (14×160)
= (12×4096) + (10×256) + (15×16) + (14×1)
= 49152 + 2560 + 240 + 14
= 51966
Therefore CAFE16 = 5196610

Conversion from decimal Base System to hexadecimal Base System

To convert from decimal to hexadecimal base system, continue to divide the given hexadecimal number by sixteen (16) and write down the remainder till it becomes zero (0).
Example 1
Convert 4780610 to Hexadecimal
Solution
16 47806 Remainder Remainder in Hex
16 2987 14 E
16 186 11 B
16 11 10 A
0 11 B

Picking Remainder in Hex from bottom to top
4780610 = BABE16

Comments

  1. I goggled key basic statement for jss2 I don't understand

    ReplyDelete
  2. Write a basic code of A-2

    ReplyDelete
    Replies
    1. You can can use a simple PRINT statement
      E.g
      CLS
      REM program to display letter A -Z
      PRINT "A"
      PRINT "B"



      complete to Z and end the program

      Delete
    2. You can also use the program below
      10 REM this program is written to display letters from A to Z
      20 FOR I = 65 TO 90
      30 PRINT CHR$(I);
      40 NEXT I
      50 END

      Delete
  3. Please Sir, don't really know how to calculate this = (1×26²)+(1×25²) =

    ReplyDelete
    Replies
    1. (1×26²)+(1×25²) = (1×26×26 )+(1×25×25 )
      = (676 )+(625 )
      =1,301

      Delete

Post a Comment

Popular posts from this blog

90 Objective Examination Questions in Major Subjects

Complete Computer Studies/ICT Curriculum for JSS 1 to SSS 3

JSS One Objective Questions in Computer Studies/Information Technology