Escolar Documentos
Profissional Documentos
Cultura Documentos
FUNDAMENTALS
OF
PROGRAMMING
(USING FLOWCHARTS)
Index
• Introduction : ............................................................................... 10
• Introduction .................................................................................. 14
Introduction :
It is a truly amazing machine. It is an electronic device used to process data. In
1940’s & 1950’s computers were of massive size used by big institutions, govt.
offices, military & universities.
Computer is derived from the word “Compute” which means to calculate. As they can
store, process & retrieve data ,as and when required they are also known as Data
Processor. eg. : ENIAC , UNIVAC etc.
Around 3000 BC in China a computer called Abacus was developed which used
beads to represent decimal & arithmetic operations of smaller volume can be
performed with its help. Number of improvements were made till the “Stepped-
Wheel” calculator was invented which multiplied & divided directly.
ENIAC : Electronic Numerical Integrator & Calculator was designed in the year
1945 which contained 18000 vaccum-tubes, weighed 30 tons which occupied 1500
sq.ft. space & just 200 characters memory by J. Presper Eckert & John W. Mauchly at
Pennsylvania in Philadelphia.
Generations of Computers :
a) Greater miniaturization.
b) Flexible in operation.
c) Larger memory.
d) High operating speed i.e. ( in nano – seconds )
e) Contained Integrated Circuits.
f) Very reliable & Random Access possible.
g) Time sharing & Multi Processing.
h) Compatible with other softwares.
i) High level languages like FORTRAN & COBOL came into existence.
Here computer systems have been thought of using Artificial Intelligence &
Parallel Processing Hardware. Knowledge based expert systems would be
the main feature.
Kaushlendra Pratap Singh Flowchart Basics
Types of Computers :
1) Analog Computers :- These computers perform the complex processing by
directly measuring the continuous physical quantities.
eg :- Slide Rule, a hand operated computer was developed in 1620-1630 for
basic arithmetic calculations.
Differential Analyzer used in gun directors & bomb sights is also an analog
computer developed in 1876.
Antikythera Mechanism was developed in the year 1901 in Greece for all
Mathematical Operations.
Desktop
Portable
1) Hardware also simply known as computer. Any physical existence which can
be seen & touched.
3) Data raw material or facts about anything which is used as input to get useful
information / result.
Kaushlendra Pratap Singh Flowchart Basics
4) People the end-users who play a crucial role. Without people the computer is
of no use.
Hardware
The procedure that transforms raw data into useful information is called
processing. Processor is like the brain of the computer. The board to which the
processor is connected is called as Motherboard or Mainboard. The term
Central Processing Unit ( CPU ) refers to the computers processing hardware.
Control Unit
Input Output
Devices Devices
Memory ALU
Control Unit controls the flow of instructions & data within the components.
Memory is computers electronic scratchpad. Programs are loaded into and run
from memory. The most common type of memory is RAM ( Random Access
Memory ). The smallest measurement unit of data is 1 bit & that of memory
is 1 byte.
1 byte : 8 bits
Input & output devices are those devices which are used to accept data &
instruction from the user & return the processed data back to the user.
eg :-
Touch screen & Modem has the functionality of both Input & Output.
Software
System Software
Operating System
DOS
WINDOWS
Operations in ALU:
• Arithmetic Operators ( + , - , / , * , ** )
• Relational Operators ( < , > , <= , >= , = , <>)
• Logical Operators (AND , OR , NOT)
(NOT) (AND)
A B A AND B
A NOT A
FALSE FALSE FALSE
FALSE TRUE
FALSE TRUE FALSE
TRUE FALSE
TRUE FALSE FALSE
TRUE TRUE TRUE
Kaushlendra Pratap Singh Flowchart Basics
(OR) (XOR)
A B A XOR B
A B A OR B
FALSE FALSE FALSE
FALSE FALSE FALSE
FALSE TRUE TRUE
FALSE TRUE TRUE
TRUE FALSE TRUE
TRUE FALSE TRUE
TRUE TRUE FALSE
TRUE TRUE TRUE
(NAND) (NOR)
A B A NAND B A B A NOR B
FALSE FALSE TRUE FALSE FALSE TRUE
FALSE TRUE TRUE FALSE TRUE FALSE
TRUE FALSE TRUE TRUE FALSE FALSE
TRUE TRUE FALSE TRUE TRUE FALSE
Kaushlendra Pratap Singh Flowchart Basics
Introduction :
1) Binary Numbering System uses the base as “2” . Base is also termed as
“RADIX”.
2 13
2 6 1
2 3 0
2 1 1
1 1
0.125 x 2 = 0.250
0.250 x 2 = 0.500
0.500 x 2 = 1.000 ( 13.125 )10 = ( 1101.001 )2
Ones Complement
Twos Complement
1) Through Modems
2) Through Networks
Analog Communication
Digital Communication
Digital computers represent the numerical quantities by the discrete electric states
( ON | OFF ) which can be manipulated logically & arithmetically.
Features of Networking
Types of Networks
A network of computers located relatively near each other & connected by cable is
known Local Area Network. It permits all the computers connected to it to share
hardware, software & data as if to be directly connected to the users computer. E.g
Computers connected to each other within any organization or institute,
Kaushlendra Pratap Singh Flowchart Basics
Server
When two or more networks are connected together generally across a wide
geographical area using high-speed or dedicated telephone lines. WAN means
network of networks. E.g. Internet.
Server 1 Server 2
Gateway Gateway
Protocols:-
On a network, data is sent in small groups called packets. A packet is a group of bits
that includes header, payload & control elements that are transmitted together.
To : B To : B To : B
From : A From : A From : A
Content : Text Content : Text Content : Text
A Packet # : 1 Packet # : 2 Packet # : 3 B
FTP is required at the time of actual storing of files to & from the server. It can be
also termed as uploading & downloading.
HTTP is required to transfer the dynamic data from one page to another. Dynamic
includes text, images, animations and dynamic text through forms like ( email
registration ).
Designed by Tim Berners – Lee. WWW exploits two technologies like Multimedia &
Hypertext, together which is known as Hypermedia. Multimedia refers to combination
of text, colour, graphics, sound, video in presentation of data. Hypertext means
presentation of text in different format with embedded links or extra effects. The
language used to create hypertext is called Hypertext Markup Language
( HTML ).
Uses of Internet
Introduction
Before solving a problem with the help of a computer, it is essential to plan the
solution in a step by step manner. Such a planning is represented symbolically with
the help of so called flowchart. Flowcharts are a modeling technique introduced in
1940/50s and popularized for structured development as well as business modeling
in 1970s (Gane and Sarson 1979).
Flowcharts can be drawn for simple as well as complex operations and are possible
even in a non-computerized environment. Trial and error should be avoided as the
computer time is precious. The logic should be depicted in the flowchart.
Computerization of data without a flowchart is like constructing a building without a
proper design and detailed drawings.
Types of Flowcharts
A typical flowchart from older Computer Science textbooks may have the following
kinds of symbols:
• Output can be in two ways a soft copy or hardcopy. For soft copy symbol is a
bullet shaped know as Visual Display & for hard copy it is a rectangle with
wavy line know as Document Print Out.
4. The essentials of what is done can easily be lost in the technical details of
how it is done.
Constants have values that do not change during the execution of the program. It
can be declared using the term CONST.
A variable is any entity that can take on different values. Anything that can vary can
be considered a variable.
( e.g.) age can be considered a variable because age can take different values for
different people or for the same person at different times.
In an attempt to solve problems on a computer, one has to express the steps for the
solution in terms of simple conceptual instructions and operations and then obtain
the results.
There may be number of ways to solve a given problem and the solution-methods
may vary from person to person, depending on one’s logic. But the basic steps would
constitute:
Besides these, a person has to decide the various type of variables that should be
used to solve the problem.
Assignments