The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by Shima Mohd, 2020-05-27 22:55:46

pseudokod

nota ICT T5

5/28/2020 Shima Mohd 1

PFlow&Pcsheaudrtocode
In rogramming

5/28/2020 Shima Mohd 2

Pseudocode In Programming

• Pseudo code is text only
sentences that describe
the logic and program flow
of a computer program.

• It usually does not have any
specific programming
language syntax and
grammar.

5/28/2020 Shima Mohd 3

AN EXAMPLE PROGRAM BASED ON A
PSEUDO CODE

5/28/2020 Shima Mohd 4

We also list all variables used at the end
of the pseudo-code.

5/28/2020 Shima Mohd 5

example

EXAMPLE: Computing discount:

Pseudo-code:

Computing the final price of an
item after figuring in discount.

Note the three types of instructions:

input (request),

process/calculate (=) and

o5u/2t8p/2u02t0(print) Shima Mohd 6

Flow chart In Programming

• A flow chart is a diagram 7
using symbols to show
the step-by-step
sequence of procedures
in a program.

• A flow chart describes
the logic and program
flow of a computer
p5/r2o8/2g020ram graphically.Shima Mohd

Flow chart In Programming

• Terminator shows the beginning or end of a 8
program.



• Flowline and arrowhead use to connect symbols
and indicate the sequences of operation.



• Input or output shows either an input operation
(e.g. an INPUT from the

• user) or an output operation (e.g. PRINT some
messages).



• Process shows a process to be carried out (e.g.
calculation).



• Decision shows a decision (or choice) to be made.
Th5e/28p/2ro02g0ram should continue along oSnheimoafMtwohod
routes (e.g. if...else).

e‘Educating the -Generation’

It’s not about a technology…
it’s about learning!

5/28/2020 Shima Mohd 9

Thank
you

5/28/2020 Shima Mohd 10


Click to View FlipBook Version