Unit 1
Unit 1
COMPUTER
Computer is an electronic device which accepts input from the user, process it and produce the
desired output.
GENERATIONS OF COMPUTER(OR) HISTORY OF COMPUTERS:
S.No Parameters 1st 2nd 3rd 4th
1
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
2
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
CLASSIFICATION OF COMPUTER:
Types of computer
3
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
4
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
1. Hardware:
Hardware refers to all visible devices that are assembled together to build a computer system.
These include various Input devices, Central Processing Unit, Output devices
Control Unit
Arithmetic
and Logic
Unit
1. INPUT UNIT:
It consists of one or more input devices like keyboard,mouse,Light pen, Joystick etc.
Keyboard is the most commonly used input device
Functions:
Accepts data or instructions from the outside world
Convert it into a form that the machine can understand
Supply the converted data for further processing
2. CPU:
It is called Heart of computer system(Since all operations are done here)
Functions:
It performs all calculations and all decisions
It controls and co-ordinates all units of computer
It interprets the instructions of a program
It stores data temporarily
5
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
3. OUTPUT UNIT
It provides the result of computation(or) calculation
It also converts the result in binary data to the form that the user can understand
Some of the output devices are Monitor/Visual Display Unit(VDU), Printer, Plotter etc.
6
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
2. Software
Software is a collection of programs.
It responsible for controlling, integrating and managing the hardware components of a computer and to
accomplish specific tasks. In other words, software tells the computer what to do and how to do it.
Types of software:
1. System software
2. Application software
1. System software
System software consists of several programs, which are directly responsible for controlling,
integrating, and managing the individual hardware components of a computer system.
Some examples of system software are Operating Systems, device drivers, language translators, and
system utilities.
i) Operating System(OS):
An Operating System interface between user and computer system (hardware).
The operating system ensures that different programs executing at the same time do not interfere
with each other.
In simple words, the operating system organizes and controls the hardware.
Examples: Windows, UNIX, and Linux.
Functions of OS:
Memory management
Process management
I/O management
User interface
Security
Applications
Multi tasking
ii) Device drivers:
Device drivers are system programs, which are responsible for proper functioning of devices.
Devices like printer, monitor, mouse or keyboard, has a driver associated with it for its proper
functioning.
iii) Language Translators:
Computers only understand machine language(0’s and 1’s)
Language translators are used to convert high level language or assembly language to machine
language
7
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
2. Application Software:
It is used to perform specific tasks.
Application software is dependent on system software.
Examples: Word processor , worksheet , Notepad etc.
i) Word processor:
To open a word processor, Click startall programsMicrosoft officeMicrosoft office word
Type a paragraph. Select the paragraph by using ctrl +A. To make a text as Bold, click ctrl +B. To
make a text as Italics, click ctrl +I. To make a text as Underlined, click ctrl +U.
Select the paragraph and selects bullets and numbering from home menu.
Select the font style and font size from the home menu.
Click ctrl+L for left alignment, ctrl+R for right alignment, ctrl+E for center alignment, ctrl+J for
justify alignment.
Select Insertpage number to insert page number to the document.
To insert the table, click InsertTable and chose the required rows and columns.
To insert rows, columns and cells in the table right click in the table and click insert option and click
rows or columns or cells.
To delete rows , columns and cells in the table right click in the table and click delete option.
To merge two cells in the table click the two cells and then right click and select merge option.
To split a cell in the table, right click the cell and click split option.
To convert text to table, click Inserttable optionconvert text to table
To convert table to text, click Layoutconvert table to text.
In Insert option, we can insert different shapes, symbols, equation and a hyperlink for any text.
To find a given text, click ctrl+F. It is also possible to replace a given text with another text in entire
document.
In page layout option, we can set the margin, orientation, page border, colour and the watermark.
To secure a document, click office buttonprepareencrypt document.
8
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
ii) Worksheet:
A spreadsheet application is a rectangular grid, which allows text, numbers, and complex functions
to be entered into a matrix of thousands of individual cells.
Examples: Microsoft Excel and Lotus 1-2-3
Steps in preparing the marksheet of students in worksheet:
To open a worksheet, Click startall programsMicrosoft officeMicrosoft Excel
To create a mark sheet of students, click on any one of the cell.
Enter the fields Rollno, Name, Maths, Physics, Chemistry, Total, Average.
Enter the rollno, name of 5 students and enter their maths, physics and chemistry marks.
Find the total of the first student by =SUM(maths, physics, chemistry marks) and click enter.
Move the mouse cursor at the bottom most corner of cell and click and drag the cell to calculate the
total for other students. (OR) Below the cell total, type = and chose FormulasAutosumsum and
click enter to find the total. Click and drag to find the total of all students.
Find the average of the first student by =AVERAGE(total marks/3) and click enter.
Move the mouse cursor at the bottom most corner of cell and click and drag the cell to calculate the
average of other students. (OR) Below the cell avearge, type = and chose
FormulasAutosumaverage and type total/3 .Click and drag to find the average of all students.
To create a chart, select the required columns and click Insertcolumn or pie or bar to insert a chart.
9
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
10
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
APPLICATIONS OF COMPUTER:
Due to its various characteristics, computers are used in different fields.
Application Uses of computer
1. Business organizations Computers are used in maintaining employee information, payroll
calculation, budgeting, maintenance of stocks etc.
2. Banking Computers are used in banks for online enquiry of customer’s
balance, deposit, updating the balance.
It also helps to withdraw money from ATM
3. Education Computers are used in education purpose in school, colleges. It is
used by students in doing projects ,learning. It is used by teachers to
prepare ppt, report card,etc. It is also used in library to keep track
of books and customer details.
4.Space and research Computers help scientists in their research work.
A number of satellites linked with computers provide a lot of
information important for space research.
5.Health care/Medicine Computers are used in surgeries and medical tests in hospital.
It also used to store the records of patients.
6.Reservation Computers are used for reservation and cancellation of tickets.
7.Shops Computers are used in preparing bills and maintaining records of
stocks and price of different items.
8.Design Computers are used in designing building, vehicles, clothes, etc
9.Entertainment Computers are used to create special effects in movies.
It is also used in creating Hollywood and animation movies.
NETWORK:
Group of two or more computers which are connected together.
NETWORK STRUCTURE:
Network structure is a term used to describe, how data on a network is organized and viewed.
Types of network:
LAN
MAN
WAN
11
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
Advantages
• The bus topology uses less cable than the star topology or the mesh topology which involve less cost.
• Ease of installation
12
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
Disadvantages
• Difficulty of troubleshooting.
• With a large network it is tough to isolate, which would take the entire network down.
ii) Star Topology:
In a star topology, all computers are connected through one central hub or switch
The mainframe system had a centralized point where the terminals connected.
Advantages
If one link fails, the remaining workstations are not affected
Easy in recovery of the system, if fault occurs.
Disadvantages
If the hub fails, the entire network goes down(i.e) Central point of failure.
More cable are used to connect to the hub, which increases the cost
Advantages
If there is a break in a cable segment, traffic can be rerouted.
Fault tolerance - Network going down due to a cable fault is almost impossible.
Disadvantages
A mesh topology is very hard to manage because of the large number connections.
With a large network, the number of cable needed to connect is high, which increases the cost.
13
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
Advantage
• Each computer has equal access to communicate on the network.
Disadvantage
If one computer fails or the cable link is broken the entire network could go down.
14
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
15
Computer Programming Unit I Prepared by S.Ashok Kumar, AP/CSE
INTRANET:
An intranet is a private network that uses Internet Protocol(IP) to securely share organization's
information within that organization.
Intranet is a network within an organization.
APPLICATIONS OF INTRANET:
i) Document publication applications:
It allow publishing documents such as organization details, employee details, project report,
ebooks etc. to the local network.
ii) Electronic resources applications:
It offers electronic resources such as software to be shared across the local network.
iii) Interactive Communication applications:
Like on internet, we have e-mail and chat like applications for Intranet, hence offering an
interactive communication among employees.
iv) Support for Internet Applications:
Intranet offers an Internet connection to the group of users, but with some restrictions.
16