Computer Codes A computer is a digital system that stores and processes different types of data in the form of 0s and 1s. The different types of data handled by a computer system include numbers,alphabets and some special characters. Therefore,there is a need to change the data entered by the users into a form that the computer system can understand and process
Computer Codes ◼ A computer is a digital system that stores and processes different types of data in the form of 0s and 1s. ◼ The different types of data handled by a computer system include numbers, alphabets and some special characters. ◼ Therefore, there is a need to change the data entered by the users into a form that the computer system can understand and process
Computer Codes Different types of codes have been developed and used to represent the data entered by the users in the binary format. The binary system represents each type of data in terms of binary digits,0s and 1s. Since these codes convert the data into the binary form,the computer codes are also referred as binary codes
Computer Codes ◼ Different types of codes have been developed and used to represent the data entered by the users in the binary format. ◼ The binary system represents each type of data in terms of binary digits, 0s and 1s. ◼ Since these codes convert the data into the binary form, the computer codes are also referred as binary codes
Computer Codes Computer professionals use different number systems according to their requirements to communicate with the computer system. All the number systems used by computer professionals to interact with computer systems come under the category of positional number system. The positional number system is a number system in which numbers are represented using some symbols called digits and the values of these numbers can be determined by taking the position of digits into consideration
Computer Codes ◼ Computer professionals use different number systems according to their requirements to communicate with the computer system. ◼ All the number systems used by computer professionals to interact with computer systems come under the category of positional number system. ◼ The positional number system is a number system in which numbers are represented using some symbols called digits and the values of these numbers can be determined by taking the position of digits into consideration
Computer Codes The different positional number systems are: 。Decimal system ·Binary system 。Hexadecimal system 。Octal system
Computer Codes The different positional number systems are: ⚫ Decimal system ⚫ Binary system ⚫ Hexadecimal system ⚫ Octal system
Decimal System The decimal system is the most common number system used by human beings. ■ It is a positional number system that uses 10 as a base to represent different values.Therefore,this number system is also known as base 10 number system. In this system,10 symbols are available for representing the values.These symbols include the digits from 0 to 9.The common operations performed in the decimal system are addition (+) subtraction (-)multiplication (x),and division (/
Decimal System ◼ The decimal system is the most common number system used by human beings. ◼ It is a positional number system that uses 10 as a base to represent different values. Therefore, this number system is also known as base 10 number system. ◼ In this system, 10 symbols are available for representing the values. These symbols include the digits from 0 to 9. The common operations performed in the decimal system are addition (+), subtraction (-), multiplication (), and division (/)
Decimal System ◆ The decimal system can be used to represent both the integer as well as floating point values.The floating point values are generally represented in this system by using a period called decimal point. ◆ The decimal point is used to separate the integer part and the fraction part of the given floating point number. The value of any number represented in the decimal system can be determined by first multiplying the weight associated with each digit in the given number with the digit itself and then adding all these values produced as a result of multiplication operation
Decimal System ◼ The decimal system can be used to represent both the integer as well as floating point values. The floating point values are generally represented in this system by using a period called decimal point. ◼ The decimal point is used to separate the integer part and the fraction part of the given floating point number. ◼ The value of any number represented in the decimal system can be determined by first multiplying the weight associated with each digit in the given number with the digit itself and then adding all these values produced as a result of multiplication operation
Decimal System 6543.124 Digit 6 5 43 1 2 4 Weight 103 102 101 100 Decimal Point 101 10-2 10-3 The powers to the base increases by 1 towards the left for the integer part and decreases by 1 towards the right for the fraction part
Decimal System Digit 6 5 4 3 . 1 2 4 Weight 103 102 101 100 Decimal Point 10-1 10-2 10-3 6543.124 The powers to the base increases by 1 towards the left for the integer part and decreases by 1 towards the right for the fraction part
Binary System The binary system uses base 2 to represent different values.Therefore,the binary system is also known as base-2 system. ■ As this system uses base 2,only two symbols are available for representing the different values in this system.These symbols are 0 and 1,which are also know as bits in computer terminology. 0 Using binary system,the computer systems can store and process each type of data in terms of 0s and 1s only
Binary System ◼ The binary system uses base 2 to represent different values. Therefore, the binary system is also known as base-2 system. ◼ As this system uses base 2, only two symbols are available for representing the different values in this system. These symbols are 0 and 1, which are also know as bits in computer terminology. ◼ Using binary system, the computer systems can store and process each type of data in terms of 0s and 1s only
Binary System The following are some of the technical terms used in binary system: o I Bit:It is the smallest unit of information used in a computer system.It can either have the value 0 or 1.Derived from the words anary dit/7. Nibble:It is a combination of 4 bits. Byte:It is a combination of 8 bits. ■ Word:It is a combination of 16 bits. Double word:It is a combination of 32 bits. Kilobyte(KB):It is used to represent the 1024 bytes of information. Megabyte(MB):It is used to represent the 1024 KBs of information. Gigabyte (GB):It is used to represent the 1024 MBs of information
Binary System The following are some of the technical terms used in binary system: ◼ Bit: It is the smallest unit of information used in a computer system. It can either have the value 0 or 1. Derived from the words Binary ditIT. ◼ Nibble: It is a combination of 4 bits. ◼ Byte: It is a combination of 8 bits. ◼ Word: It is a combination of 16 bits. ◼ Double word: It is a combination of 32 bits. ◼ Kilobyte (KB): It is used to represent the 1024 bytes of information. ◼ Megabyte (MB): It is used to represent the 1024 KBs of information. ◼ Gigabyte (GB): It is used to represent the 1024 MBs of information
Binary System We can determine the weight associated with each bit in the given binary number in the similar manner as we did in the decimal system. In the binary system,the weight of any bit can be determined by raising 2 to a power equivalent to the position of bit in the number. 1011.101 Digit 1 0 1 1 1 0 1 Weight 23 22 21 20 Binary Point 21 22 2-3
Binary System ◼ We can determine the weight associated with each bit in the given binary number in the similar manner as we did in the decimal system. ◼ In the binary system, the weight of any bit can be determined by raising 2 to a power equivalent to the position of bit in the number. Digit 1 0 1 1 . 1 0 1 Weight 2 3 2 2 2 1 2 0 Binary Point 2 -1 2 -2 2 -3 1011.101