3 COMPUTERS THE BINARY SYSTEM AND THE UNITS OF MEASURE Answer these questions. a. Do you know how computers do their calculations? b. Name at least four types of different computers. c. What do you imagine the future of computers will be? codon: codone frame: struttura to occur: capitare overlapping: che si sovrappone remainder: resto string: stringa, sequenza Storing, processing and transmitting data through electronic devices is possible because of the binary system, but what exactly is it? As the word binary says, only two digits, 0 (zero) and 1 (one), are combined to express a number in a binary system, while the common decimal system is built on the combinations of 10 possible digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). The decimal system uses the power of 10, whereas the binary system uses the power of 2. So, for example, the number 3586 can be written in the decimal system as: 3 x (10)3 + 5 x (10)2 + 8 x (10)1 + 6 x (10)0. Electronic devices can only understand the binary system, so it is necessary to convert the decimal numbers (or instructions) into binary numbers. To perform such a conversion we have to repeat the process of division by 2 till the quotient is 0 or less than 1. The binary number arises from the reading of the remainders from the bottom to the top. Here is the conversion, for example, of number 81: 81 : 2 = 40 : 2 = 20 : 2 = 10 : 2 = 5 :2 = 2 :2 = 1 :2 = Two bytes meet. First byte asks: Are you ill? Second byte replies: No, just feeling a bit off . RESULT REMAINDER 40 20 10 5 2 1 0,5 1 0 0 0 1 0 1 Number 8110 = 10100012 When working with any kind of processor, each digit (0 or 1) corresponds to a bit. Every string of 8 bits is called byte. In ASCII code (American Standard Code for Information Interchange) any character you type on your keyboard is interpreted by the computer as a byte. For example, the letter A is expressed as the ASCII code 65, but 65 is a decimal number, so if you convert it to binary number, you get 01000001. These 8 digits, or byte, are known to the computer as the letter A. When writing, you can identify bits and bytes by their spelling: upper case B is used for bytes and lower case b for bits. So 1MB is a MegaByte, 1Mb is a Megabit and 1kb is a kilobit. For example, monitoring data transfer speed when you download a file from the Internet, you may notice that your browser indicates the transfer rate in KiloBytes per second (KBps). Here is a table showing the most common multiples of bits: TERM bit byte kilobyte (KB) megabyte (MB) gigabyte (GB) terabyte (TB) 32 Module 1 FLOWCHARTING VALUES IN BYTES 1/8 (= 1 character) 1 (= 8 bits) 1,024 1,048,576 1,073,741,824 1,099,511,628,000 VALUES IN 2N 21 28 210 220 230 240