Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.

Similar presentations


Presentation on theme: "Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters."— Presentation transcript:

1 Computer Codes Rohit Khokher

2 Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters +,-, /, #,$,%, ^, &, (, ),_ =,, :,;,., [,],{, }, …

3 Computer Codes Any data is internally represented using bits (0 and 1) Computer codes were invented by grouping the bits to represent the data types A group consisting of n bits was called n-bit- byte. The group size is standardized to 8-bits. Now a byte means a group of 8-bits.

4 BCD (Binary Coded Decimal) Code BCD Code Zone Digits Binary code A B C D E F G H I BCD Code Zone Alphabet Binary code J K L M N O P Q R BCD Code Zone Alphabet Binary code s T U V W X Y Z BCD Code Zone Alphabet Binary code

5 BCD (Binary Coded Decimal) Code In BCD code digits 1 to 9 and alphabet A-Z are coded using Zone (2)bits + (Binary equivalent of digits 1 to 9) 4 bits BCD code uses 6 bits, so there are 2 6 (64) codes 9 codes for digits, 1 for 0, 26 for alphabet and 28 codes for other characters. 2 6 (64) codes are insufficient to generate codes for all the required characters.

6 EBCDIC: Extended Binary Coded Decimal Interchange code EBCDIC =36 Codes But, there may be 2 8 =256 possible code A to I J to R S to Z C1 C2 C3 C4 C5 C6 C7 C8 C9 D1 D2 D3 D4 D5 D6 D7 D8 D9 E2 E3 E4 E5 E6 E7 E8 E9 F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 0 to 9 ZonesZones

7 ASCII American Standard Code for Information Exchange (ASCII) ASCII-7 zone (3bits) digit (4-bits) ASCII -8 zone (4bits) digit (4-bits)

8 COLLATING SEQUENCES A { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/3311526/11/slides/slide_7.jpg", "name": "COLLATING SEQUENCES A


Download ppt "Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters."

Similar presentations


Ads by Google