CSC 101
CSC 101
Unit 1
Introduction to Computer
History of Computer
Unit 2
Computer Software
Unit 3
Number System
Unit 4
Introduction to Problem Solving
Unit 5
QBasic
INTRODUCTION TO COMPUTER
The computer is fast becoming the universal machine of the twenty-first century. Early
computers were large in size and too expensive to be owned by individuals. Thus they were
confined to laboratories and few research institutes. They could only be programmed by
computer engineers. The basic applications were confined to undertaking complex calculations
in science and engineering. Today, the computer is no longer confined to the laboratory.
Computers, and indeed, computing have become embedded in almost every item we use.
Computing is fast becoming ubiquitous. Its application in engineering, communication, space
science, aviation, financial institutions, social sciences, humanities, the military, transportation,
manufacturing, and the extractive industries to mention but a few
What is Computer?
A computer is an electronic machine that takes data as input through the input unit, stores the
data as input through the storage unit, processes the data through the processing unit, and gives
results as information through the output unit.
Based on this definition, the computer has four functions:
Accepts data – Input
Processes data – Processing
Gives Output – Output
Stores results – Storage.
Storage Devices: Among the most important part of a computer system are the devices that
allow you to save data or information. The physical components or materials on which data
are stored are called storage media. A storage device is a piece of hardware that permanently
stores information. Unlike electronic memory, a storage device retains information when
electric power is turned off. There are several storage devices and primary among them are:
The Floppy Disk: The floppy disk is a circular flat piece of plastic made of a flexible
(or floppy) magnetic material on which data are recorded. Floppy disk drives store
data on both sides of the disks. Earlier computers stored data on only a single side of
the floppy disk.
The Hard Disk: The hard disk is generally not visible because hard disks are usually
enclosed within the system unit. The hard disk is a stack of metal platters that spin on
one spindle like a stack of rigid floppy disks.
The CD-ROM: CD-ROM disks are hard, plastic, silver – a colored disk. CD-ROM is
an acronym for Compact Disc Read – Only Memory. This implies that the disk can
only be read. You cannot change or overwrite the contents of a CD-ROM disk.
Output Devices: Output devices return processed data, that is, information back to the user. In
other words, output devices allow the computer ‘talk’ to us. The most common output devices
are the monitor and the printer.
The Monitor: The monitor is an output device that enables the computer to display to the
user what is going on. It has a screen like that of a television. It is commonly referred to
as the screen or display. It is the main source for output of information from the
computer. As data is entered through an input device, the monitor changes to show the
effects of the command. Messages displayed on the screen allow the user to know if the
command is correct.
The Printer: The printer is an output device that produces on hard copy or a print out on
a paper i.e. it takes data from its electronic form and prints it out on paper. There are
three principal types of printers; Laser, Inkjet and Dot – Matrix.
The Sound Card: Sound Cards, otherwise known as soundboards, is a hardware board. It
is a device that produces audio sounds and usually provides ports in the back of a
computer for external speakers. It is installed in one of the expansion slot inside the
system unit’s motherboard.
HISTORICAL OVERVIEW OF THE COMPUTER
The evolution of digital computing is often divided into generations. Each generation is
characterized by dramatic improvements over the previous generation in the technology used to
build computers, the internal organization of computer systems, and programming languages.
Although not usually associated with computer generations, there has been a steady
improvement in algorithms, including algorithms used in computational science. The following
history has been organized using these widely recognized generations as mileposts.
The First Generation (1940 – 1956)
The major electronic component is Vacuum Tube.
In 1946 the ENIAC (Electronic Numeric Integrator And Calculator) was completed. This
machine was made of 18,000 vacuum tubes. This was the first machine to use the stored-
program concept. It could perform 300 multiplications per second. It was programmed by
connecting a lot of wires.
In this generation, the Batch processing operating system was used with punch cards to store the
program. The programs were written with machine code.
The Second Generation (1956 – 1963)
The major components here are Solid-state devices (transistors) instead of vacuum tubes;
magnetic storage.
One transistor replaced the equivalent of 40 vacuum tubes. Therefore, with the transistor
technology, computers became smaller in size, faster, more reliable and much greater in their
processing capability. These were also the first computers that stored their instructions in their
memory, which moved from a magnetic drum to magnetic core technology. Many of these
computers were used for business applications. The popular ones are IBM 1400 Series and
UNIVAC III. It is important to note that in this generation, both assembly and high-level
languages such as FORTRAN and COBOL were used.
CHARACTERISTICS OF A COMPUTER
Speed: The computer can manipulate large data at incredible speed and response time can
be very fast.
Accuracy: Its accuracy is very high and its consistency can be relied upon. Errors in
computing are mostly due to human rather than technological weakness. There is in-built
error detecting schemes in the computer.
Storage: It has both internal and external storage facilities for holding data and
instructions. This capacity varies from one machine to the other. Memories are built up
in K (Kilo) modules where K=1024 memory locations.
Automatic: Once a program is in the computer’s memory, it can run automatically each
time it is opened. The individual has little or no instruction to give again.
Reliability: Being a machine, a computer does not suffer human traits of tiredness and
lack of concentration. It will perform the last job with the same speed and accuracy as
the first job every time even if ten million jobs are involved.
Flexibility: It can perform any type of task once it can be reduced to logical steps.
Modern computers can be used to perform a variety of functions like on-line processing,
multi-programming, real time processing e.t.c.
CLASSIFICATION OF COMPUTERS
The computer has passed through many stages of evolution from the days of the mainframe
computers to the era of microcomputers.
Computers have been classified based on different criteria.
CLASSIFICATION BASED ON SIGNAL TYPE
There are basically three types of electronic computers. These are the digital, analog and
hybrid computers.
The Digital Computer
The digital computer represents its variables in the form of digits. The data it deals with
whether numbers, letters, or other symbols are converted into the binary form on input to the
computer. The data undergoes processing after which the binary digits are converted back to
alphanumeric form for output for human use.
Digital computers are mostly used in the commercial and business environment.
The Analog Computer
It measures rather than counts. This type of computer sets up a model of a system. The
analog computers are systems that measure continuous physical quantity. Analog computers
hold data in the form of physical variables rather than numerical quantity. In theory, analog
computers give an exact answer because the answer has not been approximated to the nearest
digit. Hence, it is mostly used by scientists and researchers.
CLASSIFICATION BY PURPOSE
Depending on their flexibility in operation, computers are classified as either special purpose
or general purpose.
Special Purpose Computer
Special-purpose computer is designed to perform special tasks. Such computers may even be
designed and built to handle only one job. In such machine steps or operations that the
computer follows may be built into the hardware.
Examples:
Computers designed for tracking airplanes or missiles
Computers used as robots in factories.
UNIT 2
COMPUTER SOFTWARE
Software is a set of instructions that operate a computer, manipulate the data and execute
particular functions or tasks. In other words, it is a programs, routines, and symbolic languages
that control the function of the hardware.
For software (the instructions) to perform various functions, it must be programmed. That is, the
instructions need to be written in a programming language that the computer can understand.
Without a program, a computer is useless.
Computer program is a sequence of instructions that can be executed by a computer to carry out
a process.
There are two kinds of software, systems software and applications software.