Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
15 views

Introduction To Programming Concepts

Uploaded by

obedyawsarpong
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Introduction To Programming Concepts

Uploaded by

obedyawsarpong
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Introduction to

Computer Programming
AGENDA

1) What is a computer Programme?

2) What can Computer Programme do?

3) Programming Environment

4) Programming basics

5) What is an Algorithm?

6) Pseudocode / Flow chart


What is Computer Programme?

A computer programme is a sequence of instructions


written using a Computer Programming
Language to perform a specified task by the
computer.
What can Computer programme do?
Programming Environment
Environment Setup, simply means the base on top of which
we can do our programming.

A compiler to An
A text editor Integrated
compile interpreter to
to create Development
programme execute
computer Environment
into binary programme
programme. (IDE)
format. directly.
Data
Types Programming Functions
Basics

Variables Operators
Keywords
What is an Algorithm?
Pseudocode
simple way of describing a set of
From a
instructions that does not have to
programming
use specific syntax
point of view,
an algorithm
is a step-by-
step Flowchart
procedure to Diagrams that represents a set of
resolve any instructions. Flowcharts normally
problem. use standard symbols to represent
the different types of instructions.
Understanding the Problem
What are the inputs into the problem?

What will be the outputs of the problem?

In what order do instructions need to be carried


out?

What decisions need to be made in the problem

Are any areas of the problem repeated?


Pseudocode
• INPUT – indicates a user will be inputting something
• OUTPUT – indicates that an output will appear on the screen
• WHILE – a loop (iteration that has a condition at the beginning)
• FOR – a counting loop (iteration)
• REPEAT – UNTIL – a loop (iteration) that has a condition at the end
• IF – THEN – ELSE – a decision (selection) in which a choice is made
• any instructions that occur inside a selection or iteration are usually
indented
Flowchart
Pseudocode Example

Planning a program
that asks people what
the best subject they
take is, would look
like this in
pseudocode:
Flowchart
Example
Planning a
program that asks
people what the
best subject they
take is, would look
like this as a
flowchart:
Algorithm Design

1 2 3
Sequencing Selection
Iteration
It is important to There are many
make sure that steps where
all the steps are decisions must
be made. That is These are steps
presented in the
choosing that need to be
correct order
between repeated
alternatives
Iteration
(Flowchart)

Algorithm for
cleaning your
teeth

You might also like