Professional Documents
Culture Documents
Lecture 6
Lecture 6
Lecture 6
INTRODUCTION TO
COMPUTER PROGRAMMING
COMPUTER LANGUAGE
Properties
Methods
OBJECT ORIENTED PROGRAMMING
Class
Specifies the definition of a particular kind of object
Its Characteristics : Properties (or Attributes)
Its Behaviors: Methods
Step 6 − print c
Step 7 − STOP
EXAMPLE
Step 1 − START ADD
Step 2 − get values of a & b
Step 3 − c ← a + b
Step 4 − display c
Step 5 − STOP
FLOW CHART
Flowchart is a diagrammatic representation of sequence
of logical steps of a program. Flowcharts use simple
geometric shapes to depict processes and arrows to show
relationships and process/data flow
FLOWCHART SYMBOLS
FLOWCHART TO CALCULATE THE AVERAGE OF
TWO NUMBERS
FLOWCHART FOR GOING TO THE
MARKET TO PURCHASE A PEN