Professional Documents
Culture Documents
User2 ..User N
Application Program
Compiler, Assembler, Editor, Database Systems
Operating System
Computer Hardware
operating system also hides the user from a number of unpleasant tasks concerning interrupts,
timers, memory management and other important functions at the lower level.
2)
The Operating system as a resource manager.
Todays computer is made up of a number of components such as processors, co-processors,
memories, various drives, network interfaces, printers, modems and so on. The aim of the
operating system is to provide an orderly controlled allocation of the various resources among
the various programs competing for them.
3)
The Operating System as a Guardian and Accountant.
The Operating System is a Guardian, to perform a number of specialized tasks in a predefined
order. The present day systems may have to perform more specialized tasks, which are highly
complex. The Operating System is also responsible to provide proper access controls so that
users do no interfere with each others programs and also the operating system is restricted from
unauthorized access..
eg . C:\Computer>
: A directory within another directory is called a sub-directory.
: All directories are sub-directories, except for one, which is called the
root directory. The root directory is the starting point from which all
other directories braches out. The root directory does not have a name.
Instead, it is represented by a backslash (\).
eg. C :\>
Drives
: Drives are usually associated with a piece of hardware called a disk.
The most common types of disks are the hard disk, which is inside your
computer, and the floppy disk and compact disc, which you insert into
slot in your computer.
A drive is a grouping of all the directories on a disk. A drive is named
with a single letter. Generally A drive refers to as Floppy disk drive &
C drive refers to as Hard disk.
Command Prompt: C:\>_
This is called command prompt. The flashing underscore next to the
command prompt is called the cursor. The cursor shows when the
command you type will appear.
DOS COMMANDS
DOS commands can be classified into two types.
1) Internal commands
2) External commands
Internal Commands: DOS supports the user of about 25 commands. Some of these commands
are in built into a program called as COMMAND.COM. This program is automatically loaded
into the memory when the computer is started. These commands can be directly executed. Such
commands are called as internal commands.
Sub-Directory
Root Directory
External Commands: DOS supports the use of about 45 additional commands. These
commands are provided as separate programs. Each program represents a command. To execute
the command the name of the program has to be typed at the prompt along with its arguments.
Such commands are called as external commands.
INTERNAL COMMANDS
DIR
:
This command gives a listing of the files & directories on a disk.
C:\>dir
COPY CON : This command is used to create a new file. If an existing filename is given, then
the previous file is lost.
C:\>copy con filename
------------------------- ^z
Ctrl+Z (^Z) is used to save the file.
TYPE
:
This command is used to display the contents of a text file to your screen.
C:\> type filename
DEL
:
This command is used to delete a file or a group of files from the disk.
C:\>del filename
MD
:
Create or make a new directory
C:\>md tumkur
CD
:
Change or moves the user from the current directory.
C:\>cd tumkur
3
COPY
RD
VER
REN
VOL
DATE
TIME
CLS
Copy from one file to another file. It does not remove the source file after
writing the new file.
C :\> copy file1 file2
:
Remove or delete a directory. You must empty the directory to be deleted
first or you will just get an error message.
C:\>rd tumkur
:
This command tells us the version of DOS which we are using.
C:\>ver
:
This command renames a file on the disk. The old & new names have to
be
specified.
C:\>ren file1 newname
:
This command tells you the volume label of your hard drive or floppy
disk. It
will also give you a serial number too.
C:\>vol
:
This command is used to display or change the system date.
C:\>date
:
This command lets you set your systems time.
C:\>time
:
Clear the screen. It also places your cursor at the top left-hand corner of
your screen also called the home position.
C:\>cls
EXTERNAL COMMANDS
ATTRIB
:
This command either Displays or Changes file attributes.
C:\>attrib +r filename
The options used in the syntax include.
+
sets an attribute
clear an attribute
R
Read-only file attribute
H
Hidden file attribute
CHKDSK
:This command analyzes disk or diskette and displays a disk and memory status
report.
C:\>chkdsk[dirve name:] [/f] [/v]
FORMAT : This command Prepares a diskette or drive for use by DOS. The successful
execution
of the command deletes all the previous data and prepares the disk as if it
is a new
disk for use.
C:\> format [drive name :]
DISKCOPY: This command makes an exact copy of a diskette, including hidden system files if
they are present
C:\> diskcopy A B
XCOPY
:
This command is designed to copy the contents of entire directories, along
with all of their sub-directories, and all of the files contained in those subdirectories.
C:\> xcopy directory1 directory2
Step 2
Step 3
Print Sum
Step 4
Stop
Step 3
Print Area
Step 4
Stop
Flowcharts
A Flowcharts is a pictorial or graphical representation of solution to any problem.
Flowcharts are constructed by using special geometrical symbols. Each symbol represents an
activity. The activity could be either input or output of data, computation or processing of data,
taking a decision or terminating the solution and so on. The symbols used in a flowchart are
joined by arrows.
Advantages of Flowcharts.
1. Flowcharts provide an excellent means of communication, which is very easy to
understand.
2. It has tot a definite procedure, which shows all the major parts of a program.
3. It is easy to convert it into a program.
4. It is independent of programming language.
5. It is easy to debug as every step has got its own logical sequence.
Predefined Process
INPUT
Radius
7
Area
OUTPUT
Area
STOP
Example 2: Design a flowchart to find the sum of two numbers.
START
INPUT A,B
Sum
A+B
OUTPUT
Sum
STOP
4. Code the program.
Translate the logic from the flow chart/Algorithm into a programming language. In this
stage the programmer uses an editor and creates a text file with comments describing the
algorithm and other useful information about the program, and program statements in a
particular programming language. The syntax of the programming language is used to
construct commands properly. If Algorithm was developed above, these make very good
comments and can help the programmer write the program(s).
5. Debugging
If any bugs are detected, return to the coding phase to eliminate them or correct errors
from program.
8
Classification of computers:
Computers can be classified into various types based on
Principle of working
Size and capability
Classification based on Principle of working
Based on principle of working, computers are classified into 3 types:
1. Analog computers
2. Digital computers
3. Hybrid computers
Analog computers are used to process data that occurs in continuous flow such as
temperature pressure, voltage variation, force, acceleration etc.
Digital computers are used to process alphanumeric and graphic data. They work on the
principal of counting.
Hybrid computer are the combination of both analog and digital computers. They accept
either the analog or digital data for processing.
Digital computers are further classified into Special purpose and General-purpose
computers.
Special purpose computers are designed for specific applications like computers used for
air traffic control, process control in industry, robots, etc.
General-purpose computers are designed to solve wide variety of problems to meet the
needs of many different applications.
e.g.: - Payroll, sales analysis, games, etc.
Classification based on Size and capability
Based on size and capability, computers are classified into 4 types
1. Micro computers
2. Mini computers
3. Mainframe computers
4. Super computers
I. Microcomputers: These are also called personal computers (pcs) because one person uses
them at a time. Initially, pcs had very limited input-output capabilities & small storage
capacity. But modern computers have large input-output capabilities, huge amount of
memory &processing speed. In short these are called micros.
Depending on the size, speed and storage pcs are further classified into
1.Desktops 2. Portables
The pcs are called as Home computers or Desktops, which are used in many applications of
homes, schools, business organizations etc.
Portables are small size computers that can be carried around. Different types of portables
available; they are laptops, notebooks, palmtops and wearable computers.
1. Laptops: It works similar to desktops but smaller in size. They are expensive than
desktops. They weigh around 3 to 5 kgs. It may be either AC-powered, battery powered,
or both.
2. Notebooks: They are as powerful as desktops but have the size of a notebook. They
weigh 2 to 3 kgs. They are costlier compared to laptops.
3. Palmtops: Also called PDAs (personal Digital Assistant). They are small enough to be
held in ones palm. They are not as powerful as desktops. They are used for word
processing, spreadsheet calculations, playing games, faxing and paging.
10
4. Wearable computers: the size is very small and can be worn on the body itself. It has
smaller processing power.
II. Minicomputers: Minicomputers are slightly bigger in size, memory & speed compared to
microcomputers. Minicomputers are multi-user systems i.e. more than user can use the
computer system at the same time. The CPU speed is 10-30 MIPS. The word length of
these computers is 16 to 32 bits. In short these are called minis.
e.g. IBM System/38,HP-3000, Digital Alpha etc.
III. Mainframe computers: Mainframe computers are larger than micros and minis and occupy
a room. A Mainframe computer is connected with several micros and minis. The CPU
speed is more than100 MIPS (Million instructions per second).The word length of these
computers is 32 to 64 bits and has a large storage capacity. In short these are called midis.
IV. Super computers: Super computers are designed for ultra high performance tasks such as
weather forecasting, defense research, space research etc. Super computers are large,
expensive and have high storage densities .Their high speed is due to the use of a number
of processors working in parallel. They are 64 bits or 96 bits computers and process more
than 10,000 MIPS.
e.g. PARAM 10,000, CRAY XMP, CAAY YMP series etc.
Applications of Computers: The idea behind the invention of Computer was to make a machine
that assists man in every day life. Computers are used for simple calculation to complex
applications such as, weather forecasting, weapons control etc.
In this section, we discuss the following
Science & Technology
Educational applications
Defense applications
Commercial applications
Applications of Computer Graphics
Telecommunication
Multimedia applications
Industrial application
1) Computers in Education: Computers are used in the field of education for many purposes
ranging from preparation of timetable to examination results. Educational software has major
influence at all levels from elementary schools to university. Connecting computers & students
together over Internet opens up more educational opportunities.
2) Computers in Business:
Today each and every company depends on computers for numerous clerical and
administrative functions. Computers are extensively used in daily transactions like pay roll,
personnel, office accounts, invoicing, record keeping, stock control, sales analysis, etc.
3) Computers in Communications: -Computers used in teleconferencing to communicate and
discuss on line projects and technologies. E-mail facility allows people to come together
globally. We can have a face-to-face conversation with a friend residing in other country. This is
possible by world wide web (www). Computers used as switching elements in telephone
exchange. Computers also used in satellite communication.
4) Computers in industry: Computers have a major impact on industries where products are
designed and manufactured. Computer aided manufacturing (CAM) is used to produce them.
a. Product design: Designing complicated products need a teamwork to produce computerized
design. Computer aided design (CAD) is used to develop the products. Computers are used to
design the cars, jet engines, ships, roads, buildings, machine components etc.
b. Factories: Computers are used for many purposes including inventory control, planning and
process control. Computers are used to measure & control variables like temperature, pressure etc.
11
5) Computers in Science and technology: Computers are used in scientific and technological
activities like weather forecasting, weapon control, controlling a satellite, medical diagnoses,
remote surgery etc. Chemistry: A chemical process is explored on a computer; the reactions are
distinguished using colors. Suitable software is used to draw the structure of chemical compounds.
Space technology: Computers are used for designing, launching, & controlling a satellite.
Computers are used to constantly monitor and control the functioning of a satellite.
Medical diagnosis: Computers are used in hospitals for maintenance of drugs, surgical
equipments, hospital personnel, payroll, accounting, records of patients, diagnosis of diseases,
treatment and so on.
6) Defense applications: Computers are used in various activities of air force, navy and army.
Computer use starts from recruitment and training to war and retirement. Computers are used to
know the working conditions of weapons (in army), to detect the enemy ship (in navy) and for
training the pilots in air force
7. Computer graphics: Computer graphics is mainly used in animation. Animation makes
images more realistic and put them in motion. There are varieties of practical applications in
animation.
7)
Multimedia Applications: Multimedia Applications use a collection of multiple media
sources like text, graphics, images, sound, video & animation. Multimedia can be used for
entertainment, education, training, simulations, exhibitions etc.
------- #### ---------
12