




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































A computer is an electronic machine, devised for performing calculations and controlling operations that can be expressed either in logical or numerical terms.
The applications domain of a computer depends totally on human creativity and imagination it covers a huge area of applications including education, industries, government medicine, scientific research, low and even music and arts.
Computer process data at an extremely fast rate – millions of instructions per second in few seconds, a computer can perform a huge task that a normal human being may take days or even years to complete. The speed of a computer is calculated in Mhz
Besides efficiency, computer are accurate as well. The level of accuracy depends an the instructions and the type of machine being used.
Computer being a machine does not suffer form the human trailts of tiredness and lack of concentration
Reliability is the measurement of performance of a computer, which is measured against some predetermined standard for operation without any failure.
1.2 Fundamentals of Computing an Programming
The main memory of the computer is relatively small and it can hold only a certain amount of information, therefore, the data is stored on secondary storage devices such as magnetic tape or disks.
It can perform multiple taks simultaneously with great ease. For example, at one moment it can be used to draft a letter, another moment it can be used to play music an in between, one can print a document as well. All this work is possible by changing the program.
It made the sharing of costly resources like printer possible. Apart from device sharing data and information can also be shared among group of computers, thus creating a large information and knowledge base.
1.4 Fundamentals of Computing an Programming Computers became smaller, faster, cheaper, energy-efficient and more reliable than their predecssors. Magnetic cores- were used as primary memory and magnetic disks as secondary storage devices. However, they still relied on punched cards for input and printouts for output. For example: PDP – 8 , IBM 1401 and IBM 7090 Characterstics of Second Generation Computer.
The development of the integrated circuit was the trait of the third generation computer. Also called an ic, an integrated circuit consists of a single chip with many components such as transistors and resistors fabricated on it. Integrated circuit replaced several individually wired transistor. This development made computers smaller in size, reliable and efficient. Instead of punched cards and printouts, users interacted with third generation computers through keyboards and monitors and interfaced with operating system. For example : NCR 395 and B Characteristic of Third Generation Computer
The technology of this generation was still based on the intergrated circuit, these have been made readily available to use because of the development of the microprocessor. The fourth generation computers led to an era of large scale integration (LSI) and very large scale integration (vlsi) technology. LSI technology allowed thousands of transistors to be constructed on one small slice of silicon material whereas vlsi squeezed hundreds of thousands of components on to a single ewp ULTRA – large scale integration (ULSI) increased that number into millions the fourth generation computer became more powerful compact, reliable and affordable. For example: apple ii, attair 8800 and CRAY-
Introduction to Computers 1. Characteristics of Fourth Generation Computers
A computer would learn from its mistakes and possess the skill of experts the starting point for the fifth generation of computers has been set in the early 1990. The expert system it defined as a computer information system that attempts to mimic the thought process and reasoning of experts in specific areas three characteristics can be identified with the fifth generation computer these are. Mega chips Fifth generation computers will use super large scale integrated (SLSI) chips, which will result in the production of microprocessor having millions of electronic components on a single chip Parallel processing A computer using parallel processing accesses several instructions at once and works on them at the same time through use of multiple central processing units. Artificial intelligence: (AI) AI comprises a group of related technologies expert systems (ES), natural language processing (NLP) speech recognition, vision recognition and robotics.
Four major categories: micro, mini, mainframe and super computers
A micro computer is a small, low cost digital computer, which usually consists of a microprocessor, a storage unit, an input channel and an output channel, all of which may be on one chip inserted into are or several pc boards. IBM – pc,Pentium 100, ibm-pc Pentium 200 and Apple Macintosh are some of the example of micro computers
Introduction to Computers 1. Mainframes are the second largest of the computer family, the largest being super computers. Mainframe allows its user to maintain large information storage at a conrralised location and be able to access and process this data from different computers located at different locations It is typically used by large businesses and for scientific purpose. Examples of mainframe computers are IBM’s E5000, VAX8000 and CDC.
Super computers are the special purpose machine, which are specially designed to maximise the numbers of FLOPS (floating point operation per second). Any computer below one gigaflop/sec is not considered a super computer. A super computer has the highest processing speed at a given time for solving scientific and engineering problems. Essentially, it contains a number of cpu, that operate in parallel to make it faster. Its processing speed lies in the range of 400 – 10,000 MF LOP’s (millions of floating point operation per second). Super computers are used to solve multivariant mathematical problems of existent physical processes, such as aerodynamics, metrologis, and plasms physics. The largest commercial use of super computers is in the entertainment advertising industry, CRAY – 3, Cyber 205 and PARAM are some well known super computers.
The block diagram of the computer system have the following three units, each functional unit corresponds to their basic operations performed as described in details. (a) Input unit (b) Central processing unit (c) Output unit
1.8 Fundamentals of Computing an Programming
1.10 Fundamentals of Computing an Programming The program that we want to run on the computer is first transferred to the primary memory before it can run. Similarly, after running the program if need to save the result, we will transfer them to the secondary storage. The secondary memory is slower and cheaper than the primary memory. Some of the commonly used secondary memory devices are Floppy diskette, Zip diskette, Hard disk and Magnetic disks and Tapes etc. (c) Output unit Devices used to get the response or result of a process from the computer is called output output unit is the communication between the user and the computer. The output unit of a computer provider the information and results of a computation to the outside world. Computers do not work in the decimal system, they work in the binary system. Therefore if required, the output unit also converts the binary data into a form that users can understand. Commonly used output devices are. ▪ Visual display unit ( VDU ) or monitor ▪ Printer ▪ Computer output microfilm ▪ Plotter.
A number is required for counting or to express the amount of some quantity it consists of a group of symbols called digits, which are arranged in a definite manner. There can be many ways in which the digits can be arranged to form a number. This gives rise to what we call a number system. The decimal number system which has ten digits (0, 1, 2,……9), the octal system has eight digits (0,1,2,….7) the hexadecimal system has sixteen digits (0,1,2,…..9,a,b,c,d,e,f), the binary number system has only two (0,1) The number of digits in a system is called radix or base. Thus the decimal system may be called as radix-10 system, the binary system as radix – 2, system. The number system are basically two types (i) Non – positioning number system (ii) Positioning number system.
Using this system, the symbols i.e, I for 1, II for 2, III for 3, IIII for 4, iiiii for 5 etc, are used
Introduction to Computers 1. In non-positioning number system each symbol represents the same values regardless of its position in the number. The symbols are simply added to find out the value of a particular number.
The positional number user only few symbol called digits Example: The decimal number 3977.39(10) 3×10^3 + 9×10^2 + 7×10^1 + 7×10^0 + 3×10-1^ * 9×10- 1000 th position 100 th position 10 th position Unit position 1/10th position 1/100th position The following four positional number system are commonly used. (1) Decimal number system (2) Binary number system (3) Octal number system (4) Hexadecimal system (1) Decimal number system In this number system the base or radix is 10 and there are altogethes ten number i.e, 0,1,2,3,4,5,6,7,8,9. A number in a radix system would be written as (an an-1 an-2 ……… a 0 a-1 a-2 ……… a-m) In this representation an is called the ‘Most-Significant Digit’ (MSD) of the number and a-m is called the ‘Least Significant Digit’ (LSD). Example: In decimal number system 3967(10) or 3967 Consists the digits 7 in the unit position (7×10^0 ) 6 in the unit position (6×10^1 ) 9 in the unit position (9×10^2 ) 3 in the unit position (3×10^3 ) It values can be written as 3×10^3 +9×10^2 +6×10^1 +7×10^0 3×1000+9×100+6×10+7× 3000+900+60+ 3967 (^3967) (10) = 3967
Introduction to Computers 1. Each position in this number system represents a power of the base(8) The decimal equivalent of the octal number 3077(8) is (^3077) (8) = 3×8^3 +0×8^2 +7×8^1 +7×8^0 = 3×512 +0×64 +7×8+7× =1536+0+56+7 =1599(10) (^3077) (8) =1599(10) Decimal Octal Binary Equivalent 0 0 000 1 1 001 2 2 010 3 3 011 4 4 100 5 5 101 6 6 110 7 7 111 (4) Hexadecimal number system The base 16 suggests choices of 16 single character digits or symbol The first 10 digits are digits of decimal system (0 to 9) and the remaining 6 digits are denoted by (A to F) representing decimal value (10 to 15) where a = 10, B = 11, C = 12, D = 13, E=14 and F = 16. The largest single digit is F or 15 ( one less that the base). Since number (0 to 9) and alphabets (A to F) are used to represent the digit in hexadecimal numbers system, it is also called the alphanumeric number systems. Decimal Hexadecimal Binary Equivalent 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 8 1000 9 9 1001 10 A 1010
1.14 Fundamentals of Computing an Programming 11 B 1011 12 C 1100 13 D 1101 14 E 1110 15 F 1111 Example: Convert the hexadecimal number 39a (16) To decimal number Solution 39A(16) = ?(10) = 3×16^2 +9×16^1 +A×16^0 = 3×256 +9×16 +A× = 3×256 +9×16 +10× =768+144+ =922(10) 39A(16)= 922(10)
⇒ Decimal to binary system ⇒ Decimal to octal ⇒ Decimal to hexadecimal (1) Conversion of Decimal to Binary System Example: Convert the 37.8125(10) decimal number to its binary equivalent 2 37 2 18 – 1 2 9 – 0
1.16 Fundamentals of Computing an Programming Exercise: Convert decimal number 214 to its octal equivalent Answer = 326 (3) Conversion of Decimal to Hexadecimal System Example: Convert the 22.64(10) decimal number to its hexadecimal equivalent. 16 22 1 – 6 Therefore, 22(10) = 16(16) Fraction Radix Result 0.64 *16 =10.24 =10.24 with carry as 10 0.24 *16 =3.84 =0.84 with carry as 3 0.84 *16 =13.44 =0.44 with carry as 13 0.44 *16 =7.04 =0.04 with carry as 7 0.64(10) = 0.A3D7(16) Therefore, 22.64(10) =16.A3D7(16) Exercise: Convert decimal number 3509 to its hexadecimal equivalent Answer = 13115 =DB5(16)
⇒ Binary to decimal conversion ⇒ Binary to octal ⇒ Binary to hexadecimal (1) Binary to Decimal Conversion Example: Convert 1101.101(2) to its decimal equivalent = 1×2³+1×2²+0×2¹+1×2+1+1×2-1×0×2-2+1×2- = 8+4+0+1+0.5+0+0. = 13.625(10)
Introduction to Computers 1. Exercise: Convert (1000100) 2 to its decimal equivalent Answer = (68) 10 (2) Binary to Octal Conversion Example: Convert the 111101100(2) to its octal equivalent. ⇒ Group the number by 3 111 101 100 ⇒ Specify the octal equivalent 111 101 100 7 5 4 Therefore, the octal number is 754(8) Exercise: Convert 111 01 111 0 (^) (2) to its equivalent octal number Answer = 735(8) (3) Binary to Hexadecimal Conversion Example: Convert the 1101100010011011(2) to its hexadecimal equivalent. ⇒ Group the number by 4 1101 1000 1001 1011 ⇒ Specify the hexadecimal equivalent 1101 1000 1001 1011 D 8 9 B Therefore, the octal number is D89B(16) Exercise: Convert 11111101. 0001 0011(2) to its equivalent hexadecimal number. Answer = FD13(16) 1.1.8.3 Conversion of Octal Number System ⇒ Octal to Decimal Conversion ⇒ Octal to Binary Conversion ⇒ Octal to Hexadecimal
Introduction to Computers 1. Exercise 34530(8) Answer = E560(16) 011 ↓
⇒ Hexadecimal to Decimal Conversion ⇒ Hexadecimal to Binary ⇒ Hexadecimal to Octal ⇒ Hexadecimal to Decimal Conversion (1) Hexadecimal to Decimal Conversion Example: Convert the 5B.2E(10) to its decimal equivalent. =5×16^1 +B×16^0 +2×16-1×E×16- =80+11+(0.125+0.0546875) =91.1796875(10) 5B.2E(16)=91.1796875(10) Exercise 5B^2 (16) Answer = 1458 (2) Hexadecimal to Binary Conversion Convert the 8B2F.9A(16) to its binary equivalent. 8 B 2 F • 9 A ↓ ↓ ↓ ↓ • ↓ ↓ 1000 1011 0011 1111 • 1001 1010 8B2F.9A(16)=1000101100111111.10011010(2) Therefore, the binary number is 1000101100111111.10011010(2) Exercise 8B2F Answer = 1000101100101111(2)
1.20 Fundamentals of Computing an Programming (3) Hexadecimal to Octal Conversion Example: Convert the BDAF.AC9(16) to its octal equivalent. ⇒ B D A F • A C 9 ↓ ↓ ↓ ↓ • ↓ ↓ ↓ 1011 1101 1010 1111 • 1010 1100 1001 ⇒ 1 011 110 110 101 111 • 101 011 001 001 ↓ ↓ ↓ ↓ ↓ ↓ • ↓ ↓ ↓ ↓ 1 3 6 6 5 7 • 5 3 1 1 Therefore, the hexadecimal number is 136657.5311(8)