Number Base System
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
Octal Number System
Decimal or Denary Number System
Hexadecimal Number system
Conversion From One Number Base System To Another
Binary to Decimal Number Conversion
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
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
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
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
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
I goggled key basic statement for jss2 I don't understand
ReplyDeleteHow may I help you
DeleteWrite a basic code of A-2
ReplyDeleteYou can can use a simple PRINT statement
DeleteE.g
CLS
REM program to display letter A -Z
PRINT "A"
PRINT "B"
complete to Z and end the program
You can also use the program below
Delete10 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
Please Sir, don't really know how to calculate this = (1×26²)+(1×25²) =
ReplyDelete(1×26²)+(1×25²) = (1×26×26 )+(1×25×25 )
Delete= (676 )+(625 )
=1,301