0% found this document useful (0 votes)
2 views

pseudocode

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

pseudocode

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Pseudo code/ Algorithms /programme(code)

Set of steps used to solve any problem is called Algorithm

Algorithm : Add a and b it gives C

Pseudocode : C = a + b

Programme: C :=(A+B)

Problem Solving
1. Totalling / Sum/ Average
2 Minimum
3. Maximum
4. Counting
5. Formula
6. Searching (Linear Search)
7. Sorting( Bubble Sort)

Control Structures
1. Sequence ( statements are written and executed one after another)
2. Selection / conditional statements
(a) IF.. Then.. ELSE..ENDIF
(b) CASE OF.... OTHERWISE... ENDCASE
3. Repetition/Loop/ Iteration
(a) FOR... TO... NEXT ( Count Controlled Loop)
(b) While .. DO.. ENDWHILE ( Pre-Condition loop)
(c) Repeat .. Until ( Post Condition Loop)

DATA TYPES
(a) Integers ( numbers without point e.g 2, 10 , 30 , 100 etc)
(b) Real ( Numbers with decimal point, e.g 10.5, 3.14 . 100.00 etc )
(c) Char ( Single character enclosed in single quotes, 'A' , 'P', 'M', '1' etc
(d) String ( Group of characted enclosed in double quotation marks "Pakistan", "123-A"
(e) Boolean ( consists of two possible values Yes/NO, True/False, 0/1)
DATA STRUCTURE
(a) Constants
(b) Variables
(c) Array
(i) 1-D array
(ii) 2-D array

Step in Algorithm
(i) Initialisation
(ii) input data
(iii) Processing
(iv) Output

Test Data

Validations

Verification

You might also like