New Introduction To Computer
New Introduction To Computer
نال1301
Chapter 1
Introduction to Computer Science
What is a Computer ?
A computer is an electronic device, accepts data (input) from the user, Process the
data into information, Produce the result (output). Stores the results for future
use.
3
What is the information processingcycle?
information processing cycle consists of five processing elements, they are:-
Input
Process
Output
Storage
Communication
4
Advantages of Using Computers
• Speed: When data, instructions, and information flow along electronic circuits in a
computer, they travel at incredibly fast speeds. Many computers process billions or
trillions of operations in a single second.
• Reliability: The electronic components in modern computers are dependable and
reliable because they rarely break or fail.
• Consistency: Given the same input and processes, a computer will produce the same
results consistently. Computers generate error-free results, provided the input is correct
and the instructions work.
• Storage: Computers store enormous amounts of data and make this data available for
processing anytime it is needed.
• Communications: Most computers today can communicate with other computers, often
wirelessly. Computers allow users to communicate with one another.
5
Disadvantages of Using Computers
• Violation of Privacy: In many instances, where personal and confidential records stored on computers were not
protected properly, individuals have found their privacy violated and identitiesstolen.
• Public Safety: Adults, teens, and children around the world are using computers to share publicly their photos,
videos, journals, music, and other personal information. Some of these unsuspecting, innocent computer users
have fallen victim to crimes committed by dangerous strangers.
• Impact on Labor Force: Although computers have improved productivity and created an entire industry with
hundreds of thousands of new jobs, the skills of millions of employees have been replaced by computers. Thus, it is
crucial that workers keep their education up-to-date. A sepa- rate impact on the labor force is that some
companies are outsourcing jobs to foreign countries instead of keeping their homeland labor force employed.
6
Disadvantages of Using Computers
• Health Risks: Prolonged or improper computer use can lead to health injuries or disorders.
Computer users can protect themselves from health risks through proper workplace design, good
posture while at the computer, and appropriately spaced work breaks.
• Impact on Environment: Computer manufacturing processes and computer waste are depleting
natural resources and polluting the environment. Green computing involves reducing the
electricity consumed and environmental waste generated when using a computer. Strategies that
support green computing include recycling, regulating manufacturing processes, extending the
life of computers, and immediately donating or properly disposing of replaced computers.
7
Exercise
A. Write short answers for the following.
1) What is computer?
2) What are the five processing elements in information processing cycle of computer?
3) What are the advantages of using Computers
4) What are the disadvantages of using Computers
8
Chapter 2
Computer Parts and Classification
Parts of computers:-
A computer system consists of three main parts, they are:
1) Hardware is the electronic and mechanical parts of a computer system. It is everything you can
touch and see
Examples: Monitor, hard drive, computer cables, keyboard, mouse, modem, printer, etc
2) Software are programs & applications. It Consists of a series of instructions that tells the
computer what to do with data.
10
10
Parts of computers:- Hardware
Motherboard connects all parts and components of a computer to each other and it is
heart of the computer. Motherboard is the central printed circuit board (PCB) in some
complex electronic systems.
Processors
Central Processing Unit (CPU):
CPU Performs all types of data processing operations.
Graphics Processing Unit (GPU):
GPU designed to handle a variety of specialized tasks such as displaying
3D images and encrypting data. Powerful GPUs are a standard feature
in gaming computers to support fast processing of virtual
environments.
Accelerated Processing Unit (APU):
APU houses and offers the combination of CPU and GPU into one
component called APU.
Classification of Computers
We can classify the computeís into the following 3 categoíies:
1. Supercomputers
• The fastest, most powerful and most expensive computer
• Used for applications requiring complex mathematical
calculations
• Fastest supercomputer can perform more than one trillion
calculations per second
• Applications:
The uses of supercomputers are dedicated to –
• In research and study of energy and nuclear weapons and
designing the aircraft, airplanes, and flight simulators.
Computers on the Basisof SizeandCapacity
2. Mainframe Computers
• Very powerful and expensive computer that supports thousands
of computers
• Used in large organizations
• Users access the mainframe’s resources through dump or
intelligent terminal
• Applications:
• Mainframe computers are mainly used by departmental and
commercial organizations like Banks, Companies, Scientific
research center
Computers on the Basisof SizeandCapacity
3. Minicomputers
• First released in 1960s
• Can handle much more input and output than personal computers
• Can handle hundreds of users at the same time
• Applications:
• Minicomputers were used for scientific and engineering computations,
business transaction processing, file handling, and database
management.
Computers on the Basisof SizeandCapacity
4. Micro Computer
• A microcomputer is a small, relatively inexpensive computer with a microprocessor as
its central processing unit (CPU).
• Microcomputers became popular in the 1970s and 1980s with the advent
of increasingly powerful microprocessors.
• Applications:
The uses of Microcomputer –
• PC is being widely used in many fields like home, office, data
collection, business, education, entertainment, publishing, etc.
• Examples:
• Desktops, tablets, smartphones, and Laptops.
• 1. General Purpose
• General computers can do various everyday tasks.
• The size, storage capacity, and cost of such computers are mainly less.
• The ability of these computers is limited in performing specialized tasks. it has
versatility and useful for serving people’s basic needs at home or in the
workplace in the environment.
• Examples:
• Desktops, laptops, smartphones, and tablets are used on daily basis for general purposes.
Computers on the BasisPurpose
• 2. Special Purpose
• These computers are designed to perform a particular or specialized task.
• The size, storage capacity, and cost of such computers mainly depend on the nature
and size of the work.
• The function of these computers is consistent with any particular task.
• The special computer needs specific processors and input and devices to conduct
work efficiently.
• Examples:
• Automatic teller machines (ATM),
• Washing machines,
• Surveillance equipment,
• Traffic-control computers,
Computers on the Basisof Hardware Design and Data Handling
• 1. Analog Computer
• An analog computer performs tasks using continuous data (the physical amount
that changes continuously).
• Analog computers are used primarily to measure physical units like the voltage,
pressure, electric current, temperature, and convert them into digits.
• Examples:
• A simple clock, the vehicle’s speedometer, Voltmeter, etc. are examples of
analog computing.
Computers on the Basisof Hardware Design and Data Handling
• 2. Digital Computer
• This computer is the computer that calculates the number for processing the
data.
• It can perform arithmetic operations such as addition, occurrence,
subtraction, multiplication, or division and all types of logical(mathematical)
operations.
• Examples
• The desktop or Laptop at our home is one the common and best example of a
digital computer.
Exercise
(A) Define the following.
1) Hardware
2) Software
3) Communications Devices
4) Motherboard
5) Central Processing Unit
6) Graphics Processing Unit
7) Accelerated Processing Unit
2. is the central printed circuit board (PCB) in some complex electronic systems.
a) Motherboard b) ROM
c) Keyboard
Q1. What are the differences between computers on the Basis of Size and Capacity?
Q2. Define the following along with examples:
1. Supercomputer
2. Mainframe
3. Minicomputer
4. Microcomputer
Chapter 3
Numbers System
Definition of Number Systems
111111=(1×25)+(1×24)+(1×23)+(1×22)+(1×21)+(1×20)
=(1×32)+(1×16)+(1×8)+(1×4)+(1×2) +(1×1)
=32+16+8+4+2+1=63
Conversion of Decimal Number System to Binary Number
System
To convert a number from the decimal number system to binary
number system, we use the following steps.
Example:
Convert (4320104320)10 into the binary system.
Solution:
Step 1: Identify the base of the required number. Since we have to convert the given number into the binary
system, the base of the required number is 2.
Step 2: Divide the given number by the base of the required number and note down the quotient and the
remainder in the quotient-remainder form. Repeat this process (dividing the quotient again by the base) until we
get the quotient to be less than the base.
Example : Convert (17)10 into the binary system base- 2.
Solution: We divide 17 by 2 and note down the result and the remainder. We will repeat this process for every quotient until we get a quotient that is less than 2.
Thus, (160)10=(10100000)2
Binary Addition
It is a key for binary subtraction, multiplication, division.
There are four rules of binary addition.
Examples
1. 101 + 111 =
2. 111 + 111 =
3. 1010 + 1010 =
4. 11101 + 1010 =
5. 11111 + 11111 =
Chapter 4
Computer System Organization and
Memory Unit
Computer Systems
• Pointing Devices:
29
Input Devices
Scanner Barcodereader
30
Input Devices
Digital projector
Printer 32
Components of Computer:
•Central Processing Unit
•Buses
•Memory Unit
Central Processing Unit
The part of the Computer that performs the bulk of data
processing operations is called the Central Processing Unit
and is referred to as the CPU.
Memory or Storage Unit:
Memory unit stores all the data and the instructions required for processing.
This unit can store instructions, data and intermediate results.
Main Memory Devices
1. Random-Access Memory (RAM)
• Usually called the main memory
• It can be read and written to
• It does not store information permanently (Volatile , when it is powered off, the
stored information are gone)
• Information stored in it can be accessed in any order at equal time periods
(hence the name random access)
• Information is accessed by an address that specifies the exact location of the
piece of information in the RAM.
Primary storage Devices
2. ROM (Read-Only-Memory)
A read-only-memory, non-volatile i.e. stores information permanently
Has random access of stored information
Used to store the information required to startup the computer
3. Cache memory
A very fast type of RAM that is used to store information that is most frequently
or recently used by the computer
Recent computers have 2-levels of cache; the first level is faster but smaller in size
(usually called internal cache), and the second level is slower but larger in size
(external cache).
Secondary storage Devices
Secondary memory is also called secondary storage, external memory or non-
volatile. Secondary storage is a non-volatile memory which holds data and programs even
after electric power to the computer system has been turned off.. Data/Information is
stored permanently.
• The kinds of secondary media are hard disks, solid-state storage, eMMC, USB, cloud
storage etc.
5. Flash memory/USB
Software
41
Software
Software is the programs and data that a computer
uses.
Programs are lists of instructions for the
processor
Data can be any information that a
program needs:
character data, numerical data, image
data, audio
data, etc.
Both programs and data are saved in
computer memory in the same way.
42
Typesof Software
1. Systems software
2. Applications software
3. Programming languages
System Software
Programming languages(PL):
Programming languages are one kind of computer
language, and are used in computer programming to
implement algorithms. Most programming languages
consist of instructions for computers.
Virtual Machine
Memory Management
Allocate memory
Ensures processes stay memory boundaries
Controlling virtual memory
I/0 System
Communicates with peripherals and hardware
components
Co-ordinates i/o systems such as interrupts and
direct memory access
Operating SystemsComponents
Files system
Organises and accesses files
Maintains on a multi-user system user file quotas
Controls file/record access
User interface
Allows the user access to programs
Allows the user to view and change system
settings.
A consistent interface between the user and the
operating system.
51
Exercise
(A) Write short answers for the following.
1) What is data?
2) What is an operating system?
3) Which computer software enables a computer user to do a
particular task?
4) What are the jobs of an operating system?
5) What are the functions of file system?
6) Write three(3) examples of Operating Systems.
7) Write three(3) examples of Application software.
8) Write any two(2) jobs done by Operating System(OS).
Exercise
(B) Define the following.
1) Software
2) System Software
3) Programming Language
(D) Do as directed.
1) Draw a table to explain different software components?
2) Draw chart to explain the functioning of operating
system?
Exercise: Choose the best option from the following.
• Software is the programs and data that a computer uses. TRUE/ FALSE
Two computers connected together via cable. This is the simplest form of
computer network.
Advantages of networking
• Connectivity and Communication
• Data Sharing
• Hardware Sharing
• Internet Access
• Internet Access Sharing
• Data Security and Management
• Performance Enhancement and Balancing
• Entertainment
Fundamental Network Classifications
Local Area Networks (LANs):
• A local area network (LAN) is a computer network covering a small
geographic area, like a home, office, or group of buildings The area is
not exceeding 10 KM.
Fundamental Network Classifications
Wide Area Networks (WANs):
• Wide Area Network (WAN) is a computer network that covers a
broad area. The largest and most well-known example of a WAN is
the Internet. WANs are used to connect LANs and other types of
networks together, so that users and computers in one location can
communicate with users and computers in other locations
Fundamental Network Classifications
Metropolitan Area Network (MAN):
• A metropolitan area network (MAN) is a network that interconnects
users with computer resources in a geographic area or region larger
than that covered by even a large local area network (LAN) but
smaller than the area covered by a wide area network (WAN). The
area covers a city of 10 to 100KM
Intranet and Internet Specifications
• Intranet: An intranet is a private network that is contained within an
enterprise. It may consist of many interlinked local area networks and
also use leased lines in the wide area network.
Algorithms
What is Algorithm? Algorithm Basics
Start Program
Enter two numbers, A, B
Print Sum
End Program
Examples of Pseudocode:
• Feasible:
The algorithm must be simple, generic and practical, such
that it can be executed upon will the available resources. It
must not contain some future technology.
• Language Independent:
The Algorithm designed must be language-independent, i.e.
it must be just plain instructions that can be implemented in
any language, and yet the output will be same, as expected.
Advantages of Algorithms
1. Define an algorithm.
Low Level Language (LLL): LLL is the language that address the computer
machine. Machine dependent, bulky, prone to error, very tedious language.
Examples include: machine and assembly languages
write programs that relate to the specific architecture and hardware of a particular type of computer.
High Level Languages Categories - Execution model
There are two categories of programming languages execution model, they are: Interpreted and
compiled programming languages. An interpreted language use an interpreter and compiled
one use a compiler.
An interpreter: Is a special program that translates and executes each source
statement at run-time, before translating and executing the next statement.
Compiler:
High Level Languages Syntax, semantic, Data types and Variables
ISE Computing Essentials 2023, Timothy J. O'Leary, Linda I. O'Leary and Daniel
O'Leary, 29th Edition, ISBN-13: 978-1265263218
Essential References
Materials Introduction to Computers 8th edition (Shelly Cashman Series) ISBN-13: 978-
1439081310