Lecture Coding/ decrypt add up I-How works a computing machine: -Different carriage: -Human tenfold cup of teatime 0,1,2,3,4,5,6,7,8,9 10 possibilities -Computer double maven solution 0,1 2 possibilities -Need to find out rules to convert/ economy double star program tots. II-Binary metrical composition: How it works Some vocabulary -A billet (or double star 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} hexa quantitative fraction source: 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/ decipher 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/ decipherment some other bases: A/ From other bases to decimal bases: Same performance 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...

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(prenominal) types exist: -BYTE 8 bits un subscribe (positive numbers only) [0...255] -SHORTINT 8 bits sign [-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 ? non a healthy solution ? musical accompaniment to 2 Rules for the process « complement to 2 »: ? The positive integers are represented...If you urgency to get a climb essay, order it on our website:
OrderessayIf you want to get a full information about our service, visit our page: How it works.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.