Unit 1 - Fundamentals of Computers:: 1.1 Computer Definition
Unit 1 - Fundamentals of Computers:: 1.1 Computer Definition
i. Microcomputer:
Microcomputer is also known as a personal computer.
It is a general-purpose computer that is designed for individual use.
It has a microprocessor as a central processing unit, memory, storage area, input unit and output
unit.
Laptops and desktop computers are examples of microcomputers.
They are suitable for personal work that may be making an assignment, watching a movie, or at
office for office work.
Characteristics of a microcomputer:
o It is the smallest in size among all types of computers.
o A limited number of software can be used.
o It is designed for personal work and applications. Only one user can work at a time.
o It is less expansive and easy to use.
o It does not require the user to have special skills or training to use it.
o Generally, comes with single semiconductor chip.
o It is capable of multitasking such as printing, scanning, browsing, watching videos, etc.
ii. Minicomputer:
It is a midsize multiprocessing computer.
It consists of two or more processors and can support 4 to 200 users at one time.
Minicomputers are used in institutes and departments for tasks such as billing, accounting and
inventory management.
A minicomputer lies between the mainframe and microcomputer as it is smaller than mainframe
but larger than a microcomputer.
Characteristics of minicomputer:
o It is light weight that makes it easy to carry and fit anywhere.
o It is less expensive than mainframe computers.
o It is very fast compared to its size.
o It remains charged for a long time.
o It does not require a controlled operational environment.
v. Workstation:
Workstation is a single user computer that is designed for technical or scientific applications.
It has a faster microprocessor, a large amount of RAM and high speed graphic adapters.
It generally performs a specific job with great expertise; accordingly, they are of different types such
as graphics workstation, music workstation and engineering design workstation.
Input Unit: A input unit of a computer system performs the following functions:
It accepts (or reads) instructions and data from outside world
It converts these instructions and data in computer acceptable form
It supplies the converted instructions and data to the computer system for further processing
Output Unit: An output unit of a computer system performs the following functions:
I BSc Computer Fundamentals and Programming in C UNIT 1
Arpitha K, Dept. of CS Mandya University, Mandya 6
It accepts the results produced by the computer, which are in coded form and hence, cannot be
easily understood by us
It converts these coded results to human acceptable (readable) form
It supplies the converted results to outside world
Central Processing Unit:
It is the brain of a computer system
It is responsible for controlling the operations of all other units of a computer system
Arithmetic Logic Unit: Arithmetic Logic Unit of a computer system is the place where the actual
executions of instructions take place during processing operation
Control Unit: Control Unit of a computer system manages and coordinates the operations of all
other components of the computer system
Storage Unit: The storage unit of a computer system holds (or stores) the following :
Data and instructions required for processing (received from input devices)
Intermediate results of processing
Final results of processing, before they are released to an output device
There are two types of storage - primary and secondary storage
Primary storage
Used to hold running program instructions
Used to hold data, intermediate results, and results of ongoing processing of job(s)
Fast in operation
Small Capacity
Expensive
Volatile (loses data on power dissipation)
Secondary storage
Used to hold stored program instructions
Used to hold data and information of stored jobs
Slower than primary storage
Large Capacity
Lot cheaper that primary storage
Non Volatile (Retains data even without power)
i. Application software:-
It is a group of program designed to accomplish a single task or a group of related tasks
5
Utility software mainly focuses on how computer infrastructure such as hardware, operating
system, software etc, operates
Examples of utility software are: Avast antivirus, disk tools, backup software etc.
6. COMPUTER LANGUAGES
There are 3 categories of computer languages:
i. Machine level language
ii. Assembly level language
iii. High level language
6.1 Machine level language
This is the only language that the computer understands without using a translation program
I BSc Computer Fundamentals and Programming in C UNIT 1
Arpitha K, Dept. of CS Mandya University, Mandya 17
OPCODE tells the computer which operation to perform from the instruction set of the computer
OPERAND tells the address of the data on which the operation is to be performed
Sample machine language program
Ex: using ADD instead of 1110(binary) or 14(decimal) for instruction to add I BSc Computer
Fundamentals and Programming in C UNIT 1
Arpitha K, Dept. of CS Mandya University, Mandya 18
Ex: representing memory locations 1000, 1001, and 1002 as FRST, SCND, and ANSR respectively
Providing pseudo-instructions that are used for instructing the system how we want the program to
be assembled inside the computer’s memory
An example program of assembly language as shown below
Flow chart
Flowchart is a program designing tool in which standard graphical symbols
are used that illustrates the sequence of operations to be performed to
solve a given problem. In other words, it is a pictorial representation of an
algorithm or a process. It is also known as the Flow Diagram. In a Flowchart
the commands or statements of algorithm are shown as a special type of
shapes. Different types of shapes are used for different types of statements,
and within those figures, that statement is written briefly. These shapes are
connected with each other with the help of arrows, which show the flow of
operation or processing.
Types of Flowcharts
Indicates the
flow of logic
Flow line by
connecting
symbols.
Represents
Terminal(Stop/ the start and
Start) the end of a
flowchart.
Used for
input and
Input/Output
output
operation.
Used for
arithmetic
operations
Processing
and data-
manipulation
s.
Used for
decision
making
Decision
between two
or more
alternatives.
Used to join
On-page
different
Connector
flowline
Used to
connect the
Off-page flowchart
Connector portion on a
different
page.
Represents a
group of
statements
Predefined
performing
Process/Function
one
processing
task.
9
2. Find the largest among three different numbers entered by the user.