.

Thursday, February 28, 2013

Informatic

Lecture Coding/Decoding add up

I-How works a computing machine:

-Different way: -Human tenfold cup of tea 0,1,2,3,4,5,6,7,8,9 10 possibilities

-Computer double star solution 0,1 2 possibilities

-Need to define rules to convert/code binary tots.

II-Binary numbers: How it works

Some vocabulary

-A bit (or binary digit) means a number (0,1)
-8 bits = a Byte
11010101: a byte

8boxes: 2? possibilities 256 posibilities
can code numbers from 0 to 255

III-Other standstills:

Octal ground: 8 posibilities for each bit

{0,1,2,3,4,5,6,7}

hexadecimal base:

16 posibilities for each bit:

{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F]
10,11,12,13,14,15

IV-Coding/Decoding binary base:

A/ From binary base to decimal base:

Ex:110011002
7 6 5 4 3 2 1 0

1*2?+1*2?+0*2?+0*2?+1*2³+1*2³+0*2¹+0*2?=20410

B/From decimal base to binary base:

- concomitant divisions of the decimal by 2 (On paper)

V-Coding/Decoding other bases:

A/ From other bases to decimal bases:

Same process for octal or hexadecimal:

11018 = 1*8³+1*8²+0*8¹+1*8? OCTAL
3 2 1 0

010016 = 0*16³+1*16²+0*16¹+0*16?=16²
3 2 1 0

B/ Tip to convert from binary to octal, hexadecimal:


1101²=1*2³+1*2²+0*2¹+1*2?=8+4+1=13

HEXA: 0,1,2,3,4,5,6,7,8,9,A,B,C,D...

Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!



1101²=D16=DH because in the HEXA base D=13

Convert Binary to Octal:

make groups of 3 numbers:

101101: 101/101²= 1*2²+0*2¹+0*2? + 1*2³+0*2?+1*2? = 55?

C/ From decimal base to other bases:

Decimal to hexadecimal base (On paper)

Successive divisions by 16

VI- How to code negative integers:

For integers several types exist:

-BYTE 8 bits un subscribe (positive numbers only) [0...255]
-SHORTINT 8 bits signed [-128...127]
-INTEGER 16 bits signed [-32768....32767]
-LONGINT 32 bits signed [-2³¹....2³¹-1]
-WORD 16 bits unsigned [0...65535]

1°)

institute a bit for the sign ? not a healthy solution
? complement to 2

Rules for the process « complement to 2 »:

? The positive integers are represented...If you want to get a full essay, order it on our website: Ordercustompaper.com



If you want to get a full essay, wisit our page: write my paper

No comments:

Post a Comment