High Level Programming Constructs
Conditional Statements (IF)
What does this extract of code do?
The CASE statement
Nested Loops
What does this extract of code do?
Conditional Loops
Pseudocode:

Get Password
While Password <> ValidPassword
   Message “Invalid Password”
   Get Password
...
Input Validation
Pseudocode:

Get Age

If Age < 0 or Age > 100 Then
    Display Message “Please Enter a Valid Age”
End If
Variable Scope
Local variable
 Variable only accessible by the module in which it
   is declared

Global variable
 Varia...
Upcoming SlideShare
Loading in …5
×

High Level Programming Constructs

2,335
-1

Published on

Revision of HLLs:
Conditional statements
Loops
Input validation
etc.

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,335
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

High Level Programming Constructs

  1. 1. High Level Programming Constructs
  2. 2. Conditional Statements (IF) What does this extract of code do?
  3. 3. The CASE statement
  4. 4. Nested Loops What does this extract of code do?
  5. 5. Conditional Loops Pseudocode: Get Password While Password <> ValidPassword Message “Invalid Password” Get Password End While
  6. 6. Input Validation Pseudocode: Get Age If Age < 0 or Age > 100 Then Display Message “Please Enter a Valid Age” End If
  7. 7. Variable Scope Local variable  Variable only accessible by the module in which it is declared Global variable  Variable is accessible throughout the entire program

×