SlideShare a Scribd company logo
1 of 18
Download to read offline
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
1
Lecture Notes-Module Wise
CDS-111: Introduction to Computers and Problem Solving
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
2
Module – 1:
Topic: Introduction to components of a computer system: Memory, processor, I/O
Devices, storage
INTRODUCTION TO COMPUTERS
Any programming language is implemented on a computer. Right from its inception, to the present
day, all computer system (irrespective of their shape & size) perform the following 5 basic
operations. It converts the raw input data into information, which is useful to the users.
1. Input: It is the process of entering data & instructions to the computer system.
2. Storing: The data & instructions are stored for either initial or additional processing, as & when
required.
3. Processing: It requires performing arithmetic or logical operation on the saved data to convert it into
useful information.
4. Output: It is the process of producing the output data to the end user.
5. Controlling: The above operations have to be directed in a particular sequence to be completed.
Based on these 5 operations, we can sketch the block diagram of a computer.
Block Diagram of a Computer
Input Unit:
We need to first enter the data & instruction in the computer system, before any computation
begins. This task is accomplished by the input devices. (The data accepted is in a human readable
form. The input device converts it into a computer readable form.
Input device: The input device is the means through which data and instructions enter in a
computer.
1. Camera - most cameras like this are used during live conversations. The camera transmits a
picture from one computer to another, or can be used to record a short video.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
3
2. Compact Disc (CD) - CDs store information. The CD can then be put into another computer,
and the information can be opened and added or used on the second computer. Note: A CD-R or
CD-RW can also be used as an OUTPUT device.
3. Keyboard - The keyboard is a way to input letters or numbers into different applications or
programs. A keyboard also has special keys that help operate the computer.
4. Mouse - The mouse is used to open and close files, navigate web sites, and click on a lot of
commands (to tell the computer what to do) when using different applications.
5. Microphone - A microphone is used to record sound. The sound is then saved as a sound file
on the computer.
6. Scanner - A scanner is used to copy pictures or other things and save them as files on the
computer.
7. Joystick - A joystick is used to move the cursor from place to place, and to click on various
items in programs. A joystick is used mostly for computer games.
8. Bar Code Scanner - A bar code scanner scans a little label that has a bar code on it. The
information is then saved on the computer. Bar code scanners are used in libraries a lot.
Storage Unit:
The data & instruction that are entered have to be stored in the computer. Similarly, the end results
& the intermediate results also have to be stored somewhere before being passed to the output unit.
The storage unit provides solution to all these issues. This storage unit is designed to save the initial
data, the intermediate result & the final result. This storage unit has 2 units: Primary storage &
Secondary storage.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
4
Central Processing Unit:
Together the Control Unit & the Arithmetic Logic Unit are called as the Central Processing
Unit (CPU). The CPU is the brain of the computer. Like in humans, the major decisions are taken
by the brain itself & other body parts function as directed by the brain. Similarly in a computer
system, all the major calculations & comparisons are made inside the CPU. The CPU is responsible
for activating & controlling the operation of other units of the computer system.
Arithmetic Logic Unit:
The actual execution of the instructions (arithmetic or logical operations) takes place over
here. The data & instructions stored in the primary storage are transferred as & when required. No
processing is done in the primary storage. Intermediate results that are generated in ALU are
temporarily transferred back to the primary storage, until needed later. Hence, data may move from
the primary storage to ALU & back again to storage, many times, before the processing is done.
Control Unit:
This unit controls the operations of all parts of the computer but does not carry out any
actual data processing.It is responsible for the transfer of data and instructions among other units of
the computer.It manages and coordinates all the units of the system.It also communicates with
Input/Output devices for transfer of data or results from the storage units.
OutputUnit:
The job of an output unit is just the opposite of an input unit. It accepts the results produced by the
computer in coded form. It converts these coded results to human readable form. Finally, it displays
the converted results to the outside world with the help of output devices ( Eg :monitors, printers,
projectors etc..).
Output device:
Device that lets you see what the computer has accomplished.
1. Monitor - A monitor is the screen on which words, numbers, and graphics can be seem. The
monitor is the most common output device.
2. Compact Disk - Some compact disks can be used to put information on. This is called
burning information to a CD. NOTE: A CD can also be an input device.
3. Printer - A printer prints whatever is on the monitor onto paper. Printers can print words,
numbers, or pictures.
4. Speaker - A speaker gives you sound output from your computer. Some speakers are built
into the computer and some are separate.
5. Headphones - Headphones give sound output from the computer. They are similar to
speakers, except they are worn on the ears so only one person can hear the output at a time.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
5
CHARACTERISTICS OF COMPUTER
Speed, accuracy, diligence, storage capability and versatility are some of the key characteristics
of a computer. A brief overview of these characteristics are—
• Speed The computer can process data very fast, at the rate of millions of instructions per
second. Some calculations that would have taken hours and days to complete otherwise,
can be completed in a few seconds using the computer. For example, calculation and
generation of salary slips of thousands of employees of an organization, weather
forecasting that requires analysis of a large amount of data related to temperature,
pressure and humidity of various places, etc.
• Accuracy Computer provides a high degree of accuracy. For example, the computer can
accurately give the result of division of any two numbers up to 10 decimal places.
• Diligence When used for a longer period of time, the computer does not get tired or
fatigued. It can perform long and complex calculations with the same speed and accuracy
from the start till the end.
• Storage Capability Large volumes of data and information can be stored in the computer
and also retrieved whenever required. A limited amount of data can be stored,
temporarily, in the primary memory. Secondary storage devices like floppy disk and
compact disk can store a large amount of data permanently.
• Versatility Computer is versatile in nature. It can perform different types of tasks with the
same ease. At one moment you can use the computer to prepare a letter document and in
the next moment you may play music or print a document.
Computers have several limitations too. Computer can only perform tasks that it has been
programmed to do. Computer cannot do any work without instructions from the user. It executes
instructions as specified by the user and does not take its own decisions.
Hardware-
This hardware is responsible for all the physical work of the computer.
Software-
This software commands the hardware what to do & how to do it. Together, the hardware &
software form the computer system. This software is further classified as system software &
application software.
System Software-
System software are a set of programs, responsible for running the computer, controlling various
operations of computer systems and management of computer resources. They act as an interface
between the hardware of the computer & the application software. E.g.: Operating System.
Application software
is a set of programs designed to solve a particular problem for users. It allows the end user to do
something besides simply running the hardware. E.g.: Web Browser, Gaming Software, etc.
Computer Classification:
Computers can be generally classified by size and power as follows, though there is considerable
overlap:
a. Personal computer: a small, single-user computer based on a microprocessor. In addition to
the microprocessor, a personal computer has a keyboard for entering data, a monitor for displaying
information, and a storage device for saving data.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
6
b. Workstation: a powerful, single-user computer. A workstation is like a personal computer,
but it has a more powerful microprocessor and a higher-quality monitor.
c. Minicomputer: a multi-user computer capable of supporting from 10 to hundreds of users
simultaneously.
d. Mainframe: a powerful multi-user computer capable of supporting many hundreds or
thousands of users simultaneously.
e. Supercomputer: an extremely fast computer that can perform hundreds of millions of
instructions per second.
6. CLASSIFICATION OF COMPUTER
The digital computers that are available nowadays vary in their sizes and types. The computers
are broadly classified into four categories (Figure 1.8) based on their size and type—(1)
Microcomputers, (2) Minicomputers, (3) Mainframe computers, and (4) Supercomputer.
Figure 1.8
Classification of computers based on size and type
1.6.1 Microcomputers
Microcomputers are small, low-cost and single-user digital computer. They consist of CPU,
input unit, output unit, storage unit and the software. Although microcomputers are stand-alone
machines, they can be connected together to create a network of computers that can serve more
than one user. IBM PC based on Pentium microprocessor and Apple Macintosh are some
examples of microcomputers. Microcomputers include desktop computers, notebook computers
or laptop, tablet computer, handheld computer, smart phones and netbook, as shown in Figure
Desktop Computer or Personal Computer (PC) is the most common type of
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
7
microcomputer. It is a stand-alone machine that can be placed on the desk. Externally, it
consists of three units—keyboard, monitor, and a system unit containing the CPU,
memory, hard disk drive, etc. It is not very expensive and is suited to the needs of a
single user at home, small business units, and organizations. Apple, Microsoft, HP, Dell
and Lenovo are some of the PC manufacturers.
• Notebook Computers or Laptop resemble a notebook. They are portable and have all the
features of a desktop computer. The advantage of the laptop is that it is small in size (can
be put inside a briefcase), can be carried anywhere, has a battery backup and has all the
functionality of the desktop. Laptops can be placed on the lap while working (hence the
name). Laptops are costlier than the desktop machines.
• Netbook These are smaller notebooks optimized for low weight and low cost, and are
designed for accessing web-based applications. Starting with the earliest netbook in late
2007, they have gained significant popularity now. Netbooks deliver the performance
needed to enjoy popular activities like streaming videos or music, emailing, Web surfing
or instant messaging. The word netbook was created as a blend of Internet and notebook.
• Tablet Computer has features of the notebook computer but it can accept input from a
stylus or a pen instead of the keyboard or mouse. It is a portable computer. Tablet
computer are the new kind of PCs.
• Handheld Computer or Personal Digital Assistant (PDA) is a small computer that can
be held on the top of the palm. It is small in size. Instead of the keyboard, PDA uses a
pen or a stylus for input. PDAs do not have a disk drive. They have a limited memory and
are less powerful. PDAs can be connected to the Internet via a wireless connection. Casio
and Apple are some of the manufacturers of PDA. Over the last few years, PDAs have
merged into mobile phones to create smart phones.
• Smart Phones are cellular phones that function both as a phone and as a small PC. They
may use a stylus or a pen, or may have a small keyboard. They can be connected to the
Internet wirelessly. They are used to access the electronic-mail, download music, play
games, etc. Blackberry, Apple, HTC, Nokia and LG are some of the manufacturers of
smart phones.
1.6.2 Minicomputers
Minicomputers (Figure 1.10) are digital computers, generally used in multi-user systems. They
have high processing speed and high storage capacity than the microcomputers. Minicomputers
can support 4–200 users simultaneously. The users can access the minicomputer through their
PCs or terminal. They are used for real-time applications in industries, research centers, etc. PDP
11, IBM (8000 series) are some of the widely used minicomputers.
Mainframe Computers
Mainframe computers (Figure 1.11) are multi-user, multi-programming and high performance
computers. They operate at a very high speed, have very large storage capacity and can handle
the workload of many users. Mainframe computers are large and powerful systems generally
used in centralized databases. The user accesses the mainframe computer via a terminal that may
be a dumb terminal, an intelligent terminal or a PC. A dumb terminal cannot store data or do
processing of its own. It has the input and output device only. An intelligent terminal has the
input and output device, can do processing, but, cannot store data of its own. The dumb and the
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
8
intelligent terminal use the processing power and the storage facility of the mainframe computer.
Mainframe computers are used in organizations like banks or companies, where many people require frequent access to
the same data. Some examples of mainframes are CDC 6600 and IBM
ES000 series.
Supercomputers
Supercomputers (Figure 1.12) are the fastest and the most expensive machines. They have high
processing speed compared to other computers. The speed of a supercomputer is generally
measured in FLOPS (FLoating point Operations Per Second). Some of the faster supercomputers
can perform trillions of calculations per second. Supercomputers are built by interconnecting
thousands of processors that can work in parallel.
Supercomputers are used for highly calculation-intensive tasks, such as, weather forecasting,
climate research (global warming), molecular research, biological research, nuclear research and
aircraft design. They are also used in major universities, military agencies and scientific research
laboratories. Some examples of supercomputers are IBM Roadrunner, IBM Blue gene and Intel
ASCI red. PARAM is a series of supercomputer assembled in India by C-DAC (Center for
Development of Advanced Computing), in Pune. PARAM Padma is the latest machine in this
series. The peak computing power of PARAM Padma is 1 Tera FLOP (TFLOP).
THE COMPUTER SYSTEM
Computer is an electronic device that accepts data as input, processes the input data by
performing mathematical and logical operations on it, and gives the desired output. The
computer system consists of four parts•(1) Hardware, (2) Software, (3) Data, and (4) Users. The
parts of computer system are shown in Figure 1.13.
Hardware consists of the mechanical parts that make up the computer as a machine. The
hardware consists of physical devices of the computer. The devices are required for input,
output, storage and processing of the data. Keyboard, monitor, hard disk drive, floppy disk drive,
printer, processor and motherboard are some of the hardware devices.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
9
Software is a set of instructions that tells the computer about the tasks to be performed and how
these tasks are to be performed. Program is a set of instructions, written in a language
understood by the computer, to perform a specific task. A set of programs and documents are
collectively called software. The hardware of the computer system cannot perform any task on
its own. The hardware needs to be instructed about the task to be performed. Software instructs
the computer about the task to be performed. The hardware carries out these tasks. Different
software can be loaded on the same hardware to perform different kinds of tasks.
Data are isolated values or raw facts, which by themselves have no much significance. For
example, the data like 29, January, and 1994 just represent values. The data is provided as input
to the computer, which is processed to generate some meaningful information. For example, 29,
January and 1994 are processed by the computer to give the date of birth of a person.
Users are people who write computer programs or interact with the computer. They are also
known as skinware, liveware, humanware or peopleware. Programmers, data entry operators,
system analyst and computer hardware engineers fall into this category.
The Input-Process-Output Concept
A computer is an electronic device that (1) accepts data, (2) processes data, (3) generates output,
and (4) stores data. The concept of generating output information from the input 4 data is also
referred to as input-process-output concept.
The input-process-output concept of the computer is explained as follows—
• Input The computer accepts input data from the user via an input device like keyboard.
The input data can be characters, word, text, sound, images, document, etc.
• Process The computer processes the input data. For this, it performs some actions on the
data by using the instructions or program given by the user of the data. The action could
be an arithmetic or logic calculation, editing, modifying a document, etc. During
processing, the data, instructions and the output are stored temporarily in the computer’s
main memory.
• Output The output is the result generated after the processing of data. The output may be
in the form of text, sound, image, document, etc. The computer may display the output on
a monitor, send output to the printer for printing, play the output, etc.
• Storage The input data, instructions and output are stored permanently in the secondary
storage devices like disk or tape. The stored data can be retrieved later, whenever needed.
1.7.2 Components of Computer Hardware
The computer system hardware comprises of three main components —
1. Input/Output (I/O) Unit,
2. Central Processing Unit (CPU), and
3. Memory Unit.
The I/O unit consists of the input unit and the output unit. CPU performs calculations and
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
10
processing on the input data, to generate the output. The memory unit is used to store the data,
the instructions and the output information. Figure 1.14 illustrates the typical interaction among
the different components of the computer.
Figure 1.14
Input/Output Unit The user interacts with the computer via the I/O unit. The Input unit
accepts data from the user and the Output unit provides the processed data i.e. the
information to the user. The Input unit converts the data that it accepts from the user, into
a form that is understandable by the computer. Similarly, the Output unit provides the
output in a form that is understandable by the user. The input is provided to the computer
using input devices like keyboard, trackball and mouse. Some of the commonly used
output devices are monitor and printer.
• Central Processing Unit CPU controls, coordinates and supervises the operations of the
computer. It is responsible for processing of the input data. CPU consists of Arithmetic
Logic Unit (ALU) and Control Unit (CU).
o ALU performs all the arithmetic and logic operations on the input data.
o CU controls the overall operations of the computer i.e. it checks the sequence of
execution of instructions, and, controls and coordinates the overall functioning of
the units of computer.
Additionally, CPU also has a set of registers for temporary storage of data, instructions,
addresses and intermediate results of calculation.
• Memory Unit Memory unit stores the data, instructions, intermediate results and output,
temporarily, during the processing of data. This memory is also called the main memory
or primary memory of the computer. The input data that is to be processed is brought into
the main memory before processing. The instructions required for processing of data and
any intermediate results are also stored in the main memory. The output is stored in
memory before being transferred to the output device. CPU can work with the
information stored in the main memory. Another kind of storage unit is also referred to as
the secondary memory of the computer. The data, the programs and the output are stored
permanently in the storage unit of the computer. Magnetic disks, optical disks and
magnetic tapes are examples of secondary memory.
For Reference Only **Digital Computer-A brief History
Each generation of computer is characterized by a major technological development that
fundamentally changed the way computers operate, resulting in increasingly smaller, cheaper,
more powerful and more efficient and reliable devices.
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
11
First Generation (1940-1956) Vacuum Tubes
• The first computers used vacuum tubes for circuitry and magnetic drums for memory, and
were often enormous, taking up entire rooms.
• They were very expensive to operate and in addition to using a great deal of electricity,
generated a lot of heat, which was often the cause of malfunctions.
• First generation computers relied on machine language, the lowest-level programming
language understood by computers, to perform operations, and they could only solve one problem
at a time.
• Input was based on punched cards and paper tape, and output was displayed on printouts.
• The UNIVAC and ENIAC computers are examples of first-generation computing devices.
Second Generation (1956-1963) Transistors
• Transistors replaced vacuum tubes and ushered in the second generation of computers. The
transistor was far superior to the vacuum tube, allowing computers to become smaller, faster,
cheaper, more energy-efficient and more reliable than their first-generation predecessors.
• Second-generation computers still relied on punched cards for input and printouts for output.
• Second-generation computers moved from cryptic binary machine language to symbolic, or
assembly, languages, which allowed programmers to specify instructions in words. High-level
programming languages were also being developed at this time, such as early versions of COBOL
and FORTRAN.
• The first computers of this generation were developed for the atomic energy industry.
Third Generation (1964-1971) Integrated Circuits
• The development of the integrated circuit was the hallmark of the third generation of
computers.
• Transistors were miniaturized and placed on silicon chips, called semiconductors, which
drastically increased the speed and efficiency of computers.
• Instead of punched cards and printouts, users interacted with third generation computers
through keyboards and monitors and interfaced with an operating system, which allowed the device
to run many different applications at one time with a central program that monitored the memory.
• Computers for the first time became accessible to a mass audience because they were smaller
and cheaper than their predecessors.
Fourth Generation (1971-Present) Microprocessors
• The microprocessor brought the fourth generation of computers, as thousands of integrated
circuits were built onto a single silicon chip.
• The Intel 4004 chip, developed in 1971, located all the components of the computer—from the
central processing unit and memory to input/output controls—on a single chip.
• As these small computers became more powerful, they could be linked together to form
networks, which eventually led to the development of the Internet.
• Fourth generation computers also saw the development of GUIs, the mouse and handheld
devices.
Fifth Generation (Present and Beyond) Artificial Intelligence
• Fifth generation computing devices, based on artificial intelligence, are still in development,
though there are some applications, such as voice recognition, that are being used today.
• The use of parallel processing and superconductors is helping to make artificial intelligence a
reality.
• A language that is acceptable to a computer system is called a computer language or
programming language and the process of creating a sequence of instructions in such a language
is called programming or coding.
• A program is a set of instructions, written to perform a specific task by the computer. A set of large
program is called software. To develop software, one must have knowledge of a programming
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
12
language.
• Before moving on to any programming language, it is important to know about the various types of
languages used by the computer.
COMPUTER LANGUAGES
• Languages are a means of communication. Normally people interact with each other
through a language. On the same pattern, communication with computers is carried out
through a language. This language is understood both by the user and the machine.
• Just as every language like English, Hindi has its own grammatical rules; every computer
language is also bounded by rules known as syntax of that language. The user is bound by
that syntax while communicating with the computer system.
Computer languages are broadly classified as:
• Low Level Language: The term low level highlights the fact that it is closer to a language
which the machine understands
The low level languages are classified as:
• Machine Language: This is the language (in the form of 0‘s and 1‘s, called binary numbers)
understood directly by the computer. It is machine dependent. It is difficult to learn and even
more difficult to write programs.
• Assembly Language: This is the language where the machine codes comprising of 0‘sand
1‘s are substituted by symbolic codes (called mnemonics) to improve their understanding. It
is the first step to improve programming structure. Assembly language programming is
simpler and less time consuming than machine level programming, it is easier to locate and
correct errors in assembly language than in machine language programs. It is also machine
dependent. Programmers must have knowledge of the machine on which the program will
run.
• High Level Language: Low level language requires extensive knowledge of the hardware
since it is machine dependent. To overcome this limitation, high level language has been
evolved which uses normal English, which is easy to understand to solve any problem. High
level languages are computer independent and programming becomes quite easy and
simple. Various high level languages are given below:
• BASIC (Beginners All Purpose Symbolic Instruction Code): It is widely used, easy to learn
general purpose language. Mainly used in microcomputers in earlier days.
• COBOL (Common Business Oriented language): A standardized language used for
commercial applications.
• FORTRAN (Formula Translation): Developed for solving mathematical and scientific
problems. One of the most popular languages among scientific community.
• C: Structured Programming Language used for all purpose such as scientific application,
commercial application, developing games etc.
• C++: Popular object oriented programming language, used for general purpose.
The data stored in the computer may be of different kinds, as follows—
• Numeric data (0, 1, 2, …, 9)
• Alphabetic data (A, B, C, …, Z)
• Alphanumeric data—Combination of any of the symbols—(A, B, C… Z), (0, 1… 9), or
special characters (+,−, Blank), etc.
All kinds of data, be it alphabets, numbers, symbols, sound data or video data, is represented in
terms of 0s and 1s, in the computer. Each symbol is represented as a unique combination of 0s
and 1s.
This chapter discusses the number systems that are commonly used in the computer. The number
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
13
systems discussed in this chapter are—(1) Decimal number system, (2) Binary number system,
(3) Octal number system, and (4) Hexadecimal number system. The number conversions
described in this chapter are—
• Decimal (Integer, Fraction, Integer.Fraction) to Binary, Octal, Hexadecimal
• Binary, Octal, Hexadecimal (Integer, Fraction, Integer.Fraction) to Decimal
• Binary to Octal, Hexadecimal
• Octal, Hexadecimal to Binary
The chapter also discusses the binary arithmetic operations and the representation of signed and
unsigned numbers in the computer. The representation of numbers using binary coding schemes
and the logic gates used for the manipulation of data are also discussed.
5.2 NUMBER SYSTEM
A number system in base r or radix r uses unique symbols for r digits. One or more digits are
combined to get a number. The base of the number decides the valid digits that are used to make
a number. In a number, the position of digit starts from the right-hand side of the number. The
rightmost digit has position 0, the next digit on its left has position 1, and so on. The digits of a
number have two kinds of values—
• Face value, and
• Position value.
The face value of a digit is the digit located at that position. For example, in decimal number 52,
face value at position 0 is 2 and face value at position 1 is 5.
The position value of a digit is (baseposition). For example, in decimal number 52, the position
value of digit 2 is 100 and the position value of digit 5 is 101. Decimal numbers have a base of 10.
The number is calculated as the sum of, face value * baseposition, of each of the digits. For
decimal number 52, the number is 5*101 + 2*100 = 50 + 2 = 52
In computers, we are concerned with four kinds of number systems, as follows—
• Decimal Number System —Base 10
• Binary Number System —Base 2
• Octal Number System —Base 8
• Hexadecimal Number System—Base 16
The numbers given as input to computer and the numbers given as output from the computer, are
generally in decimal number system, and are most easily understood by humans. However,
computer understands the binary number system, i.e., numbers in terms of 0s and 1s. The binary
data is also represented, internally, as octal numbers and hexadecimal numbers due to their ease
of use.
A number in a particular base is written as (number)base of number For example, (23)10 means that
the number 23 is a decimal number, and (345)8 shows that 345 is an octal number.
5.2.1 Decimal Number System
• It consists of 10 digits—0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
• All numbers in this number system are represented as combination of digits 0—9. For
example, 34, 5965 and 867321.
• The position value and quantity of a digit at different positions in a number are as
follows—
5.2.2 Binary Number System
• The binary number system consists of two digits—0 and 1.
• All binary numbers are formed using combination of 0 and 1. For example, 1001,
11000011 and 10110101.
• The position value and quantity of a digit at different positions in a number are as
follows—
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
14
5.2.3 Octal Number System
The octal number system consists of eight digits—0 to 7.
• All octal numbers are represented using these eight digits. For example, 273, 103, 2375,
etc. The position value and quantity of a digit at different positions in a number are as
follows—
Hexadecimal Number System
• The hexadecimal number system consists of sixteen digits—0 to 9, A, B, C, D, E, F,
where (A is for 10, B is for 11, C-12, D-13, E-14, F-15).
• All hexadecimal numbers are represented using these 16 digits. For example, 3FA, 87B,
113, etc.
• The position value and quantity of a digit at different positions in a number are as
follows—
Summary of number system
Table 5.2 Decimal, binary, octal and hexadecimal equivalents
CONVERSION FROM DECIMAL TO BINARY, OCTAL, HEXADECIMAL
A decimal number has two parts—integer part and fraction part. For example, in the decimal
number 23.0786, 23 is the integer part and .0786 is the fraction part. The method used for the
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
15
conversion of the integer part of a decimal number is different from the one used for the fraction
part. In the following subsections, we shall discuss the conversion of decimal integer, decimal
fraction and decimal integer.fraction number into binary, octal and hexadecimal number.
5.3.1 Converting Decimal Integer to Binary, Octal, Hexadecimal
A decimal integer is converted to any other base, by using the division operation.
To convert a decimal integer to—
• binary-divide by 2,
• octal-divide by 8, and,
• hexadecimal-divide by 16.
Let us now understand this conversion with the help of some examples.
Example 1: Convert 25 from Base 10 to Base 2.
1. Make a table as shown below. Write the number in centre and toBase on the left side
to Base Number Remainder
(Quotient)
2 25
2. 2. Divide the number with toBase. After each division, write the remainder on right-side
column and quotient in the next line in the middle column. Continue dividing till the
quotient is 0.
to Base Number
(Quotient) Remainder
2 25
2 12 1
2 6 0
2 3 0
2 1 1
0 1
3. Write the digits in remainder column starting from downwards to upwards,
The binary equivalent of number (25)10 is (11001)2
The steps shown above are followed to convert a decimal integer to a number in any other base.
Example2: Convert 23 from Base 10 to Base 2, 8, 16
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
16
Example 3: Convert 147 from Base 10 to Base 2, 8 and 16
Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar
||Shubhangi GGaikar@IGCET
17
PROGRAMMING LANGUAGE TRANSLATORS
• As you know that high level language is machine independent and assembly language
though it is machine dependent yet mnemonics that are being used to represent instructions
are not directly understandable by the machine. Hence to make the machine understand the
instructions provided by both the languages, programming language instructors are used.
• They transform the instruction prepared by programmers into a form which can be
interpreted & executed by the computer. Flowing are the various tools to achieve this
purpose:
Compiler: The software that reads a program written in high level language and translates it into an
equivalent program in machine language is called as compiler. The program written by the
programmer in high level language is called source program and the program generated by the
compiler after translation is called as object program.
Interpreter: it also executes instructions written in a high level language. Both complier & interpreter
have the same goal i.e. to convert high level language into binary instructions, but their method of
execution is different. The complier converts the entire source code into machine level program,
while the interpreter takes 1 statement, translates it, executes it & then again takes the next
statement.
Assembler: The software that reads a program written in assembly language and translates it into an
equivalent program in machine language is called as assembler.
Linker: A linker or link editor is a computer program that takes one or more object files generated by a
compiler and combines them into a single executable file, library file, or another object file.
Lecture Notes||Programming for Problem Solving (KCS-101/KCS-201)||S.K. Swarnakar@IT-GCET 18

More Related Content

Similar to Introduction to Computer UNIT 1 notes.pdf

BASIC OF COMPUTER.pptx regarding details
BASIC OF COMPUTER.pptx regarding detailsBASIC OF COMPUTER.pptx regarding details
BASIC OF COMPUTER.pptx regarding detailsMuskanMukhi1
 
ComputerFundementals.pptx
ComputerFundementals.pptxComputerFundementals.pptx
ComputerFundementals.pptxAyyappanSri
 
Basics of Computers.docx
Basics of Computers.docxBasics of Computers.docx
Basics of Computers.docxAlfred Salazar
 
Elements of computer and brief introduction
Elements of computer and brief introductionElements of computer and brief introduction
Elements of computer and brief introductionsriushakeerthi2
 
INTRODUCTION TO COMPUTER .pptx
INTRODUCTION TO COMPUTER .pptxINTRODUCTION TO COMPUTER .pptx
INTRODUCTION TO COMPUTER .pptxRamjeyDavocRony
 
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...SaffaIbrahim1
 
Computer Operations & Packages
Computer Operations & PackagesComputer Operations & Packages
Computer Operations & PackagesMakaha Rutendo
 
Computer Organisation unit 1 basics of computer Organisation
Computer Organisation unit 1 basics of computer OrganisationComputer Organisation unit 1 basics of computer Organisation
Computer Organisation unit 1 basics of computer Organisationluckyanirudhsai
 
Unit-1 Introduction To Computer System.pptx
Unit-1 Introduction To Computer System.pptxUnit-1 Introduction To Computer System.pptx
Unit-1 Introduction To Computer System.pptxNarayanSharma82
 
What is computer 1
What is computer 1What is computer 1
What is computer 1Shuja Qais
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.pptLathaSrinivas5
 
Introduction to computer.pptx
Introduction to computer.pptxIntroduction to computer.pptx
Introduction to computer.pptxkanwal74
 
Basic concepts of computer & net work (1.25 mb)
Basic concepts of computer & net work (1.25 mb)Basic concepts of computer & net work (1.25 mb)
Basic concepts of computer & net work (1.25 mb)IMRAN KHAN
 
Basics of Computer.pdfnsbsjsjsjsjshsnssjjs
Basics of Computer.pdfnsbsjsjsjsjshsnssjjsBasics of Computer.pdfnsbsjsjsjsjshsnssjjs
Basics of Computer.pdfnsbsjsjsjsjshsnssjjsnassorokayanda9412
 
Introduction to Computer and Generations of Computer by Er. Kamlesh Tripathi
Introduction to Computer and Generations of Computer by Er. Kamlesh TripathiIntroduction to Computer and Generations of Computer by Er. Kamlesh Tripathi
Introduction to Computer and Generations of Computer by Er. Kamlesh TripathiLEALucknow
 

Similar to Introduction to Computer UNIT 1 notes.pdf (20)

BASIC OF COMPUTER.pptx regarding details
BASIC OF COMPUTER.pptx regarding detailsBASIC OF COMPUTER.pptx regarding details
BASIC OF COMPUTER.pptx regarding details
 
Unit1_1_IIT_IM.pptx
Unit1_1_IIT_IM.pptxUnit1_1_IIT_IM.pptx
Unit1_1_IIT_IM.pptx
 
ComputerFundementals.pptx
ComputerFundementals.pptxComputerFundementals.pptx
ComputerFundementals.pptx
 
Basics of Computers.docx
Basics of Computers.docxBasics of Computers.docx
Basics of Computers.docx
 
Elements of computer and brief introduction
Elements of computer and brief introductionElements of computer and brief introduction
Elements of computer and brief introduction
 
INTRODUCTION TO COMPUTER .pptx
INTRODUCTION TO COMPUTER .pptxINTRODUCTION TO COMPUTER .pptx
INTRODUCTION TO COMPUTER .pptx
 
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...
Computer Architecture in Organisation - COMP 3114 - LECTURE NOTES - 2023-2024...
 
Computer Operations & Packages
Computer Operations & PackagesComputer Operations & Packages
Computer Operations & Packages
 
Computer Organisation unit 1 basics of computer Organisation
Computer Organisation unit 1 basics of computer OrganisationComputer Organisation unit 1 basics of computer Organisation
Computer Organisation unit 1 basics of computer Organisation
 
Computer notes
Computer notesComputer notes
Computer notes
 
Unit-1 Introduction To Computer System.pptx
Unit-1 Introduction To Computer System.pptxUnit-1 Introduction To Computer System.pptx
Unit-1 Introduction To Computer System.pptx
 
What is computer 1
What is computer 1What is computer 1
What is computer 1
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.ppt
 
Introduction to computer.pptx
Introduction to computer.pptxIntroduction to computer.pptx
Introduction to computer.pptx
 
Itc lecture
Itc lectureItc lecture
Itc lecture
 
Introduction of computer
Introduction of computerIntroduction of computer
Introduction of computer
 
Basic concepts of computer & net work (1.25 mb)
Basic concepts of computer & net work (1.25 mb)Basic concepts of computer & net work (1.25 mb)
Basic concepts of computer & net work (1.25 mb)
 
Basics of Computer.pdfnsbsjsjsjsjshsnssjjs
Basics of Computer.pdfnsbsjsjsjsjshsnssjjsBasics of Computer.pdfnsbsjsjsjsjshsnssjjs
Basics of Computer.pdfnsbsjsjsjsjshsnssjjs
 
Ch1
Ch1Ch1
Ch1
 
Introduction to Computer and Generations of Computer by Er. Kamlesh Tripathi
Introduction to Computer and Generations of Computer by Er. Kamlesh TripathiIntroduction to Computer and Generations of Computer by Er. Kamlesh Tripathi
Introduction to Computer and Generations of Computer by Er. Kamlesh Tripathi
 

More from shubhangisonawane6

updated notes cds UNIT 6 and 7 communicationppt.pdf
updated notes cds UNIT 6 and 7 communicationppt.pdfupdated notes cds UNIT 6 and 7 communicationppt.pdf
updated notes cds UNIT 6 and 7 communicationppt.pdfshubhangisonawane6
 
fundamentals of digital communication Unit 5_microprocessor.pdf
fundamentals of digital communication Unit 5_microprocessor.pdffundamentals of digital communication Unit 5_microprocessor.pdf
fundamentals of digital communication Unit 5_microprocessor.pdfshubhangisonawane6
 
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfFundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfshubhangisonawane6
 
fundamentals of digital communication unit 2 notes.pdf
fundamentals of digital communication  unit 2 notes.pdffundamentals of digital communication  unit 2 notes.pdf
fundamentals of digital communication unit 2 notes.pdfshubhangisonawane6
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfshubhangisonawane6
 
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdfSYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdfshubhangisonawane6
 
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdfSYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdfshubhangisonawane6
 
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdfSYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdfshubhangisonawane6
 
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdfSYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdfshubhangisonawane6
 
UNIT 4 computer networking powerpoint presentation .pdf
UNIT 4 computer networking powerpoint presentation .pdfUNIT 4 computer networking powerpoint presentation .pdf
UNIT 4 computer networking powerpoint presentation .pdfshubhangisonawane6
 
unit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfunit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfshubhangisonawane6
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfshubhangisonawane6
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfshubhangisonawane6
 
IS notes unit 2_shubhangi Gaikar.pdf
IS notes unit 2_shubhangi Gaikar.pdfIS notes unit 2_shubhangi Gaikar.pdf
IS notes unit 2_shubhangi Gaikar.pdfshubhangisonawane6
 
Laplace Transform_SHUBHANGI GAIKAR.pdf
Laplace Transform_SHUBHANGI GAIKAR.pdfLaplace Transform_SHUBHANGI GAIKAR.pdf
Laplace Transform_SHUBHANGI GAIKAR.pdfshubhangisonawane6
 

More from shubhangisonawane6 (17)

updated notes cds UNIT 6 and 7 communicationppt.pdf
updated notes cds UNIT 6 and 7 communicationppt.pdfupdated notes cds UNIT 6 and 7 communicationppt.pdf
updated notes cds UNIT 6 and 7 communicationppt.pdf
 
fundamentals of digital communication Unit 5_microprocessor.pdf
fundamentals of digital communication Unit 5_microprocessor.pdffundamentals of digital communication Unit 5_microprocessor.pdf
fundamentals of digital communication Unit 5_microprocessor.pdf
 
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfFundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
 
fundamentals of digital communication unit 2 notes.pdf
fundamentals of digital communication  unit 2 notes.pdffundamentals of digital communication  unit 2 notes.pdf
fundamentals of digital communication unit 2 notes.pdf
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdfSYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 4 Iot Applications .pdf
 
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdfSYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 3 IoT Architecture.pdf
 
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdfSYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 2 short range .pdf
 
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdfSYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdf
SYBSC(CS)_WCIOT_Sem-II-Unit 1 Overview of wireless communication.pdf
 
UNIT 4 computer networking powerpoint presentation .pdf
UNIT 4 computer networking powerpoint presentation .pdfUNIT 4 computer networking powerpoint presentation .pdf
UNIT 4 computer networking powerpoint presentation .pdf
 
unit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdfunit 4 cds computer networking notesnotes.pdf
unit 4 cds computer networking notesnotes.pdf
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
 
computer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdfcomputer devices and memory unit 2 notes.pdf
computer devices and memory unit 2 notes.pdf
 
IS NOTES UNIT 4.pdf
IS NOTES UNIT 4.pdfIS NOTES UNIT 4.pdf
IS NOTES UNIT 4.pdf
 
IS notes unit 2_shubhangi Gaikar.pdf
IS notes unit 2_shubhangi Gaikar.pdfIS notes unit 2_shubhangi Gaikar.pdf
IS notes unit 2_shubhangi Gaikar.pdf
 
Laplace Transform_SHUBHANGI GAIKAR.pdf
Laplace Transform_SHUBHANGI GAIKAR.pdfLaplace Transform_SHUBHANGI GAIKAR.pdf
Laplace Transform_SHUBHANGI GAIKAR.pdf
 
Dcn
DcnDcn
Dcn
 

Recently uploaded

PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptMAESTRELLAMesa2
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​kaibalyasahoo82800
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Sérgio Sacani
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |aasikanpl
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PPRINCE C P
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 

Recently uploaded (20)

PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.ppt
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Nanoparticles synthesis and characterization​ ​
Nanoparticles synthesis and characterization​  ​Nanoparticles synthesis and characterization​  ​
Nanoparticles synthesis and characterization​ ​
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
Artificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C PArtificial Intelligence In Microbiology by Dr. Prince C P
Artificial Intelligence In Microbiology by Dr. Prince C P
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 

Introduction to Computer UNIT 1 notes.pdf

  • 1. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 1 Lecture Notes-Module Wise CDS-111: Introduction to Computers and Problem Solving
  • 2. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 2 Module – 1: Topic: Introduction to components of a computer system: Memory, processor, I/O Devices, storage INTRODUCTION TO COMPUTERS Any programming language is implemented on a computer. Right from its inception, to the present day, all computer system (irrespective of their shape & size) perform the following 5 basic operations. It converts the raw input data into information, which is useful to the users. 1. Input: It is the process of entering data & instructions to the computer system. 2. Storing: The data & instructions are stored for either initial or additional processing, as & when required. 3. Processing: It requires performing arithmetic or logical operation on the saved data to convert it into useful information. 4. Output: It is the process of producing the output data to the end user. 5. Controlling: The above operations have to be directed in a particular sequence to be completed. Based on these 5 operations, we can sketch the block diagram of a computer. Block Diagram of a Computer Input Unit: We need to first enter the data & instruction in the computer system, before any computation begins. This task is accomplished by the input devices. (The data accepted is in a human readable form. The input device converts it into a computer readable form. Input device: The input device is the means through which data and instructions enter in a computer. 1. Camera - most cameras like this are used during live conversations. The camera transmits a picture from one computer to another, or can be used to record a short video.
  • 3. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 3 2. Compact Disc (CD) - CDs store information. The CD can then be put into another computer, and the information can be opened and added or used on the second computer. Note: A CD-R or CD-RW can also be used as an OUTPUT device. 3. Keyboard - The keyboard is a way to input letters or numbers into different applications or programs. A keyboard also has special keys that help operate the computer. 4. Mouse - The mouse is used to open and close files, navigate web sites, and click on a lot of commands (to tell the computer what to do) when using different applications. 5. Microphone - A microphone is used to record sound. The sound is then saved as a sound file on the computer. 6. Scanner - A scanner is used to copy pictures or other things and save them as files on the computer. 7. Joystick - A joystick is used to move the cursor from place to place, and to click on various items in programs. A joystick is used mostly for computer games. 8. Bar Code Scanner - A bar code scanner scans a little label that has a bar code on it. The information is then saved on the computer. Bar code scanners are used in libraries a lot. Storage Unit: The data & instruction that are entered have to be stored in the computer. Similarly, the end results & the intermediate results also have to be stored somewhere before being passed to the output unit. The storage unit provides solution to all these issues. This storage unit is designed to save the initial data, the intermediate result & the final result. This storage unit has 2 units: Primary storage & Secondary storage.
  • 4. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 4 Central Processing Unit: Together the Control Unit & the Arithmetic Logic Unit are called as the Central Processing Unit (CPU). The CPU is the brain of the computer. Like in humans, the major decisions are taken by the brain itself & other body parts function as directed by the brain. Similarly in a computer system, all the major calculations & comparisons are made inside the CPU. The CPU is responsible for activating & controlling the operation of other units of the computer system. Arithmetic Logic Unit: The actual execution of the instructions (arithmetic or logical operations) takes place over here. The data & instructions stored in the primary storage are transferred as & when required. No processing is done in the primary storage. Intermediate results that are generated in ALU are temporarily transferred back to the primary storage, until needed later. Hence, data may move from the primary storage to ALU & back again to storage, many times, before the processing is done. Control Unit: This unit controls the operations of all parts of the computer but does not carry out any actual data processing.It is responsible for the transfer of data and instructions among other units of the computer.It manages and coordinates all the units of the system.It also communicates with Input/Output devices for transfer of data or results from the storage units. OutputUnit: The job of an output unit is just the opposite of an input unit. It accepts the results produced by the computer in coded form. It converts these coded results to human readable form. Finally, it displays the converted results to the outside world with the help of output devices ( Eg :monitors, printers, projectors etc..). Output device: Device that lets you see what the computer has accomplished. 1. Monitor - A monitor is the screen on which words, numbers, and graphics can be seem. The monitor is the most common output device. 2. Compact Disk - Some compact disks can be used to put information on. This is called burning information to a CD. NOTE: A CD can also be an input device. 3. Printer - A printer prints whatever is on the monitor onto paper. Printers can print words, numbers, or pictures. 4. Speaker - A speaker gives you sound output from your computer. Some speakers are built into the computer and some are separate. 5. Headphones - Headphones give sound output from the computer. They are similar to speakers, except they are worn on the ears so only one person can hear the output at a time.
  • 5. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 5 CHARACTERISTICS OF COMPUTER Speed, accuracy, diligence, storage capability and versatility are some of the key characteristics of a computer. A brief overview of these characteristics are— • Speed The computer can process data very fast, at the rate of millions of instructions per second. Some calculations that would have taken hours and days to complete otherwise, can be completed in a few seconds using the computer. For example, calculation and generation of salary slips of thousands of employees of an organization, weather forecasting that requires analysis of a large amount of data related to temperature, pressure and humidity of various places, etc. • Accuracy Computer provides a high degree of accuracy. For example, the computer can accurately give the result of division of any two numbers up to 10 decimal places. • Diligence When used for a longer period of time, the computer does not get tired or fatigued. It can perform long and complex calculations with the same speed and accuracy from the start till the end. • Storage Capability Large volumes of data and information can be stored in the computer and also retrieved whenever required. A limited amount of data can be stored, temporarily, in the primary memory. Secondary storage devices like floppy disk and compact disk can store a large amount of data permanently. • Versatility Computer is versatile in nature. It can perform different types of tasks with the same ease. At one moment you can use the computer to prepare a letter document and in the next moment you may play music or print a document. Computers have several limitations too. Computer can only perform tasks that it has been programmed to do. Computer cannot do any work without instructions from the user. It executes instructions as specified by the user and does not take its own decisions. Hardware- This hardware is responsible for all the physical work of the computer. Software- This software commands the hardware what to do & how to do it. Together, the hardware & software form the computer system. This software is further classified as system software & application software. System Software- System software are a set of programs, responsible for running the computer, controlling various operations of computer systems and management of computer resources. They act as an interface between the hardware of the computer & the application software. E.g.: Operating System. Application software is a set of programs designed to solve a particular problem for users. It allows the end user to do something besides simply running the hardware. E.g.: Web Browser, Gaming Software, etc. Computer Classification: Computers can be generally classified by size and power as follows, though there is considerable overlap: a. Personal computer: a small, single-user computer based on a microprocessor. In addition to the microprocessor, a personal computer has a keyboard for entering data, a monitor for displaying information, and a storage device for saving data.
  • 6. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 6 b. Workstation: a powerful, single-user computer. A workstation is like a personal computer, but it has a more powerful microprocessor and a higher-quality monitor. c. Minicomputer: a multi-user computer capable of supporting from 10 to hundreds of users simultaneously. d. Mainframe: a powerful multi-user computer capable of supporting many hundreds or thousands of users simultaneously. e. Supercomputer: an extremely fast computer that can perform hundreds of millions of instructions per second. 6. CLASSIFICATION OF COMPUTER The digital computers that are available nowadays vary in their sizes and types. The computers are broadly classified into four categories (Figure 1.8) based on their size and type—(1) Microcomputers, (2) Minicomputers, (3) Mainframe computers, and (4) Supercomputer. Figure 1.8 Classification of computers based on size and type 1.6.1 Microcomputers Microcomputers are small, low-cost and single-user digital computer. They consist of CPU, input unit, output unit, storage unit and the software. Although microcomputers are stand-alone machines, they can be connected together to create a network of computers that can serve more than one user. IBM PC based on Pentium microprocessor and Apple Macintosh are some examples of microcomputers. Microcomputers include desktop computers, notebook computers or laptop, tablet computer, handheld computer, smart phones and netbook, as shown in Figure Desktop Computer or Personal Computer (PC) is the most common type of
  • 7. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 7 microcomputer. It is a stand-alone machine that can be placed on the desk. Externally, it consists of three units—keyboard, monitor, and a system unit containing the CPU, memory, hard disk drive, etc. It is not very expensive and is suited to the needs of a single user at home, small business units, and organizations. Apple, Microsoft, HP, Dell and Lenovo are some of the PC manufacturers. • Notebook Computers or Laptop resemble a notebook. They are portable and have all the features of a desktop computer. The advantage of the laptop is that it is small in size (can be put inside a briefcase), can be carried anywhere, has a battery backup and has all the functionality of the desktop. Laptops can be placed on the lap while working (hence the name). Laptops are costlier than the desktop machines. • Netbook These are smaller notebooks optimized for low weight and low cost, and are designed for accessing web-based applications. Starting with the earliest netbook in late 2007, they have gained significant popularity now. Netbooks deliver the performance needed to enjoy popular activities like streaming videos or music, emailing, Web surfing or instant messaging. The word netbook was created as a blend of Internet and notebook. • Tablet Computer has features of the notebook computer but it can accept input from a stylus or a pen instead of the keyboard or mouse. It is a portable computer. Tablet computer are the new kind of PCs. • Handheld Computer or Personal Digital Assistant (PDA) is a small computer that can be held on the top of the palm. It is small in size. Instead of the keyboard, PDA uses a pen or a stylus for input. PDAs do not have a disk drive. They have a limited memory and are less powerful. PDAs can be connected to the Internet via a wireless connection. Casio and Apple are some of the manufacturers of PDA. Over the last few years, PDAs have merged into mobile phones to create smart phones. • Smart Phones are cellular phones that function both as a phone and as a small PC. They may use a stylus or a pen, or may have a small keyboard. They can be connected to the Internet wirelessly. They are used to access the electronic-mail, download music, play games, etc. Blackberry, Apple, HTC, Nokia and LG are some of the manufacturers of smart phones. 1.6.2 Minicomputers Minicomputers (Figure 1.10) are digital computers, generally used in multi-user systems. They have high processing speed and high storage capacity than the microcomputers. Minicomputers can support 4–200 users simultaneously. The users can access the minicomputer through their PCs or terminal. They are used for real-time applications in industries, research centers, etc. PDP 11, IBM (8000 series) are some of the widely used minicomputers. Mainframe Computers Mainframe computers (Figure 1.11) are multi-user, multi-programming and high performance computers. They operate at a very high speed, have very large storage capacity and can handle the workload of many users. Mainframe computers are large and powerful systems generally used in centralized databases. The user accesses the mainframe computer via a terminal that may be a dumb terminal, an intelligent terminal or a PC. A dumb terminal cannot store data or do processing of its own. It has the input and output device only. An intelligent terminal has the input and output device, can do processing, but, cannot store data of its own. The dumb and the
  • 8. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 8 intelligent terminal use the processing power and the storage facility of the mainframe computer. Mainframe computers are used in organizations like banks or companies, where many people require frequent access to the same data. Some examples of mainframes are CDC 6600 and IBM ES000 series. Supercomputers Supercomputers (Figure 1.12) are the fastest and the most expensive machines. They have high processing speed compared to other computers. The speed of a supercomputer is generally measured in FLOPS (FLoating point Operations Per Second). Some of the faster supercomputers can perform trillions of calculations per second. Supercomputers are built by interconnecting thousands of processors that can work in parallel. Supercomputers are used for highly calculation-intensive tasks, such as, weather forecasting, climate research (global warming), molecular research, biological research, nuclear research and aircraft design. They are also used in major universities, military agencies and scientific research laboratories. Some examples of supercomputers are IBM Roadrunner, IBM Blue gene and Intel ASCI red. PARAM is a series of supercomputer assembled in India by C-DAC (Center for Development of Advanced Computing), in Pune. PARAM Padma is the latest machine in this series. The peak computing power of PARAM Padma is 1 Tera FLOP (TFLOP). THE COMPUTER SYSTEM Computer is an electronic device that accepts data as input, processes the input data by performing mathematical and logical operations on it, and gives the desired output. The computer system consists of four parts•(1) Hardware, (2) Software, (3) Data, and (4) Users. The parts of computer system are shown in Figure 1.13. Hardware consists of the mechanical parts that make up the computer as a machine. The hardware consists of physical devices of the computer. The devices are required for input, output, storage and processing of the data. Keyboard, monitor, hard disk drive, floppy disk drive, printer, processor and motherboard are some of the hardware devices.
  • 9. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 9 Software is a set of instructions that tells the computer about the tasks to be performed and how these tasks are to be performed. Program is a set of instructions, written in a language understood by the computer, to perform a specific task. A set of programs and documents are collectively called software. The hardware of the computer system cannot perform any task on its own. The hardware needs to be instructed about the task to be performed. Software instructs the computer about the task to be performed. The hardware carries out these tasks. Different software can be loaded on the same hardware to perform different kinds of tasks. Data are isolated values or raw facts, which by themselves have no much significance. For example, the data like 29, January, and 1994 just represent values. The data is provided as input to the computer, which is processed to generate some meaningful information. For example, 29, January and 1994 are processed by the computer to give the date of birth of a person. Users are people who write computer programs or interact with the computer. They are also known as skinware, liveware, humanware or peopleware. Programmers, data entry operators, system analyst and computer hardware engineers fall into this category. The Input-Process-Output Concept A computer is an electronic device that (1) accepts data, (2) processes data, (3) generates output, and (4) stores data. The concept of generating output information from the input 4 data is also referred to as input-process-output concept. The input-process-output concept of the computer is explained as follows— • Input The computer accepts input data from the user via an input device like keyboard. The input data can be characters, word, text, sound, images, document, etc. • Process The computer processes the input data. For this, it performs some actions on the data by using the instructions or program given by the user of the data. The action could be an arithmetic or logic calculation, editing, modifying a document, etc. During processing, the data, instructions and the output are stored temporarily in the computer’s main memory. • Output The output is the result generated after the processing of data. The output may be in the form of text, sound, image, document, etc. The computer may display the output on a monitor, send output to the printer for printing, play the output, etc. • Storage The input data, instructions and output are stored permanently in the secondary storage devices like disk or tape. The stored data can be retrieved later, whenever needed. 1.7.2 Components of Computer Hardware The computer system hardware comprises of three main components — 1. Input/Output (I/O) Unit, 2. Central Processing Unit (CPU), and 3. Memory Unit. The I/O unit consists of the input unit and the output unit. CPU performs calculations and
  • 10. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 10 processing on the input data, to generate the output. The memory unit is used to store the data, the instructions and the output information. Figure 1.14 illustrates the typical interaction among the different components of the computer. Figure 1.14 Input/Output Unit The user interacts with the computer via the I/O unit. The Input unit accepts data from the user and the Output unit provides the processed data i.e. the information to the user. The Input unit converts the data that it accepts from the user, into a form that is understandable by the computer. Similarly, the Output unit provides the output in a form that is understandable by the user. The input is provided to the computer using input devices like keyboard, trackball and mouse. Some of the commonly used output devices are monitor and printer. • Central Processing Unit CPU controls, coordinates and supervises the operations of the computer. It is responsible for processing of the input data. CPU consists of Arithmetic Logic Unit (ALU) and Control Unit (CU). o ALU performs all the arithmetic and logic operations on the input data. o CU controls the overall operations of the computer i.e. it checks the sequence of execution of instructions, and, controls and coordinates the overall functioning of the units of computer. Additionally, CPU also has a set of registers for temporary storage of data, instructions, addresses and intermediate results of calculation. • Memory Unit Memory unit stores the data, instructions, intermediate results and output, temporarily, during the processing of data. This memory is also called the main memory or primary memory of the computer. The input data that is to be processed is brought into the main memory before processing. The instructions required for processing of data and any intermediate results are also stored in the main memory. The output is stored in memory before being transferred to the output device. CPU can work with the information stored in the main memory. Another kind of storage unit is also referred to as the secondary memory of the computer. The data, the programs and the output are stored permanently in the storage unit of the computer. Magnetic disks, optical disks and magnetic tapes are examples of secondary memory. For Reference Only **Digital Computer-A brief History Each generation of computer is characterized by a major technological development that fundamentally changed the way computers operate, resulting in increasingly smaller, cheaper, more powerful and more efficient and reliable devices.
  • 11. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 11 First Generation (1940-1956) Vacuum Tubes • The first computers used vacuum tubes for circuitry and magnetic drums for memory, and were often enormous, taking up entire rooms. • They were very expensive to operate and in addition to using a great deal of electricity, generated a lot of heat, which was often the cause of malfunctions. • First generation computers relied on machine language, the lowest-level programming language understood by computers, to perform operations, and they could only solve one problem at a time. • Input was based on punched cards and paper tape, and output was displayed on printouts. • The UNIVAC and ENIAC computers are examples of first-generation computing devices. Second Generation (1956-1963) Transistors • Transistors replaced vacuum tubes and ushered in the second generation of computers. The transistor was far superior to the vacuum tube, allowing computers to become smaller, faster, cheaper, more energy-efficient and more reliable than their first-generation predecessors. • Second-generation computers still relied on punched cards for input and printouts for output. • Second-generation computers moved from cryptic binary machine language to symbolic, or assembly, languages, which allowed programmers to specify instructions in words. High-level programming languages were also being developed at this time, such as early versions of COBOL and FORTRAN. • The first computers of this generation were developed for the atomic energy industry. Third Generation (1964-1971) Integrated Circuits • The development of the integrated circuit was the hallmark of the third generation of computers. • Transistors were miniaturized and placed on silicon chips, called semiconductors, which drastically increased the speed and efficiency of computers. • Instead of punched cards and printouts, users interacted with third generation computers through keyboards and monitors and interfaced with an operating system, which allowed the device to run many different applications at one time with a central program that monitored the memory. • Computers for the first time became accessible to a mass audience because they were smaller and cheaper than their predecessors. Fourth Generation (1971-Present) Microprocessors • The microprocessor brought the fourth generation of computers, as thousands of integrated circuits were built onto a single silicon chip. • The Intel 4004 chip, developed in 1971, located all the components of the computer—from the central processing unit and memory to input/output controls—on a single chip. • As these small computers became more powerful, they could be linked together to form networks, which eventually led to the development of the Internet. • Fourth generation computers also saw the development of GUIs, the mouse and handheld devices. Fifth Generation (Present and Beyond) Artificial Intelligence • Fifth generation computing devices, based on artificial intelligence, are still in development, though there are some applications, such as voice recognition, that are being used today. • The use of parallel processing and superconductors is helping to make artificial intelligence a reality. • A language that is acceptable to a computer system is called a computer language or programming language and the process of creating a sequence of instructions in such a language is called programming or coding. • A program is a set of instructions, written to perform a specific task by the computer. A set of large program is called software. To develop software, one must have knowledge of a programming
  • 12. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 12 language. • Before moving on to any programming language, it is important to know about the various types of languages used by the computer. COMPUTER LANGUAGES • Languages are a means of communication. Normally people interact with each other through a language. On the same pattern, communication with computers is carried out through a language. This language is understood both by the user and the machine. • Just as every language like English, Hindi has its own grammatical rules; every computer language is also bounded by rules known as syntax of that language. The user is bound by that syntax while communicating with the computer system. Computer languages are broadly classified as: • Low Level Language: The term low level highlights the fact that it is closer to a language which the machine understands The low level languages are classified as: • Machine Language: This is the language (in the form of 0‘s and 1‘s, called binary numbers) understood directly by the computer. It is machine dependent. It is difficult to learn and even more difficult to write programs. • Assembly Language: This is the language where the machine codes comprising of 0‘sand 1‘s are substituted by symbolic codes (called mnemonics) to improve their understanding. It is the first step to improve programming structure. Assembly language programming is simpler and less time consuming than machine level programming, it is easier to locate and correct errors in assembly language than in machine language programs. It is also machine dependent. Programmers must have knowledge of the machine on which the program will run. • High Level Language: Low level language requires extensive knowledge of the hardware since it is machine dependent. To overcome this limitation, high level language has been evolved which uses normal English, which is easy to understand to solve any problem. High level languages are computer independent and programming becomes quite easy and simple. Various high level languages are given below: • BASIC (Beginners All Purpose Symbolic Instruction Code): It is widely used, easy to learn general purpose language. Mainly used in microcomputers in earlier days. • COBOL (Common Business Oriented language): A standardized language used for commercial applications. • FORTRAN (Formula Translation): Developed for solving mathematical and scientific problems. One of the most popular languages among scientific community. • C: Structured Programming Language used for all purpose such as scientific application, commercial application, developing games etc. • C++: Popular object oriented programming language, used for general purpose. The data stored in the computer may be of different kinds, as follows— • Numeric data (0, 1, 2, …, 9) • Alphabetic data (A, B, C, …, Z) • Alphanumeric data—Combination of any of the symbols—(A, B, C… Z), (0, 1… 9), or special characters (+,−, Blank), etc. All kinds of data, be it alphabets, numbers, symbols, sound data or video data, is represented in terms of 0s and 1s, in the computer. Each symbol is represented as a unique combination of 0s and 1s. This chapter discusses the number systems that are commonly used in the computer. The number
  • 13. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 13 systems discussed in this chapter are—(1) Decimal number system, (2) Binary number system, (3) Octal number system, and (4) Hexadecimal number system. The number conversions described in this chapter are— • Decimal (Integer, Fraction, Integer.Fraction) to Binary, Octal, Hexadecimal • Binary, Octal, Hexadecimal (Integer, Fraction, Integer.Fraction) to Decimal • Binary to Octal, Hexadecimal • Octal, Hexadecimal to Binary The chapter also discusses the binary arithmetic operations and the representation of signed and unsigned numbers in the computer. The representation of numbers using binary coding schemes and the logic gates used for the manipulation of data are also discussed. 5.2 NUMBER SYSTEM A number system in base r or radix r uses unique symbols for r digits. One or more digits are combined to get a number. The base of the number decides the valid digits that are used to make a number. In a number, the position of digit starts from the right-hand side of the number. The rightmost digit has position 0, the next digit on its left has position 1, and so on. The digits of a number have two kinds of values— • Face value, and • Position value. The face value of a digit is the digit located at that position. For example, in decimal number 52, face value at position 0 is 2 and face value at position 1 is 5. The position value of a digit is (baseposition). For example, in decimal number 52, the position value of digit 2 is 100 and the position value of digit 5 is 101. Decimal numbers have a base of 10. The number is calculated as the sum of, face value * baseposition, of each of the digits. For decimal number 52, the number is 5*101 + 2*100 = 50 + 2 = 52 In computers, we are concerned with four kinds of number systems, as follows— • Decimal Number System —Base 10 • Binary Number System —Base 2 • Octal Number System —Base 8 • Hexadecimal Number System—Base 16 The numbers given as input to computer and the numbers given as output from the computer, are generally in decimal number system, and are most easily understood by humans. However, computer understands the binary number system, i.e., numbers in terms of 0s and 1s. The binary data is also represented, internally, as octal numbers and hexadecimal numbers due to their ease of use. A number in a particular base is written as (number)base of number For example, (23)10 means that the number 23 is a decimal number, and (345)8 shows that 345 is an octal number. 5.2.1 Decimal Number System • It consists of 10 digits—0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. • All numbers in this number system are represented as combination of digits 0—9. For example, 34, 5965 and 867321. • The position value and quantity of a digit at different positions in a number are as follows— 5.2.2 Binary Number System • The binary number system consists of two digits—0 and 1. • All binary numbers are formed using combination of 0 and 1. For example, 1001, 11000011 and 10110101. • The position value and quantity of a digit at different positions in a number are as follows—
  • 14. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 14 5.2.3 Octal Number System The octal number system consists of eight digits—0 to 7. • All octal numbers are represented using these eight digits. For example, 273, 103, 2375, etc. The position value and quantity of a digit at different positions in a number are as follows— Hexadecimal Number System • The hexadecimal number system consists of sixteen digits—0 to 9, A, B, C, D, E, F, where (A is for 10, B is for 11, C-12, D-13, E-14, F-15). • All hexadecimal numbers are represented using these 16 digits. For example, 3FA, 87B, 113, etc. • The position value and quantity of a digit at different positions in a number are as follows— Summary of number system Table 5.2 Decimal, binary, octal and hexadecimal equivalents CONVERSION FROM DECIMAL TO BINARY, OCTAL, HEXADECIMAL A decimal number has two parts—integer part and fraction part. For example, in the decimal number 23.0786, 23 is the integer part and .0786 is the fraction part. The method used for the
  • 15. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 15 conversion of the integer part of a decimal number is different from the one used for the fraction part. In the following subsections, we shall discuss the conversion of decimal integer, decimal fraction and decimal integer.fraction number into binary, octal and hexadecimal number. 5.3.1 Converting Decimal Integer to Binary, Octal, Hexadecimal A decimal integer is converted to any other base, by using the division operation. To convert a decimal integer to— • binary-divide by 2, • octal-divide by 8, and, • hexadecimal-divide by 16. Let us now understand this conversion with the help of some examples. Example 1: Convert 25 from Base 10 to Base 2. 1. Make a table as shown below. Write the number in centre and toBase on the left side to Base Number Remainder (Quotient) 2 25 2. 2. Divide the number with toBase. After each division, write the remainder on right-side column and quotient in the next line in the middle column. Continue dividing till the quotient is 0. to Base Number (Quotient) Remainder 2 25 2 12 1 2 6 0 2 3 0 2 1 1 0 1 3. Write the digits in remainder column starting from downwards to upwards, The binary equivalent of number (25)10 is (11001)2 The steps shown above are followed to convert a decimal integer to a number in any other base. Example2: Convert 23 from Base 10 to Base 2, 8, 16
  • 16. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 16 Example 3: Convert 147 from Base 10 to Base 2, 8 and 16
  • 17. Lecture Notes|| CDS-111: Introduction to Computers and Problem Solving By Shubhangi Gaikar ||Shubhangi GGaikar@IGCET 17 PROGRAMMING LANGUAGE TRANSLATORS • As you know that high level language is machine independent and assembly language though it is machine dependent yet mnemonics that are being used to represent instructions are not directly understandable by the machine. Hence to make the machine understand the instructions provided by both the languages, programming language instructors are used. • They transform the instruction prepared by programmers into a form which can be interpreted & executed by the computer. Flowing are the various tools to achieve this purpose: Compiler: The software that reads a program written in high level language and translates it into an equivalent program in machine language is called as compiler. The program written by the programmer in high level language is called source program and the program generated by the compiler after translation is called as object program. Interpreter: it also executes instructions written in a high level language. Both complier & interpreter have the same goal i.e. to convert high level language into binary instructions, but their method of execution is different. The complier converts the entire source code into machine level program, while the interpreter takes 1 statement, translates it, executes it & then again takes the next statement. Assembler: The software that reads a program written in assembly language and translates it into an equivalent program in machine language is called as assembler. Linker: A linker or link editor is a computer program that takes one or more object files generated by a compiler and combines them into a single executable file, library file, or another object file.
  • 18. Lecture Notes||Programming for Problem Solving (KCS-101/KCS-201)||S.K. Swarnakar@IT-GCET 18