Lecture 1
Lecture 1
Lecture 1
STRUCTURED PROGRAMMING
Professor Aribisala
Saturdays: 12- 2pm
Course outline
-Structured programming elements
-Structured Design principles,
-abstraction, modularity, Stepwise refinement,
-structured design techniques.
-Teaching of a Structured Programming Language,
-Laboratory exercises in a Structured Programming Language.
-Basic and Visual Basic (VB) programming language.
Course Rules
• CSC 215 is a compulsory course, you cannot graduate without it
• Condition to write exam
– Register for the course
– 70% attendance
– Have Class number
• If you miss 3 or more classes, then you are advised to delete
the course because you will not be allowed to write the exam
O/L requirement
Get credit in English, Maths, Chem., Biol. and one other science
Score more than 200 in UTME
UTME requirement
Attempt English, Chemistry, Biology
Post-UME requirement
Score more than 50 in post-UTME
Principles of Structured Programming
Elements of a structured program
1. Control structures
2. Subroutines
3. Blocks
Control Structure
1. Sequencing, which has to do with the logical sequence provided by the
statements in the program. As they are executed, each step in the sequence
must logically progress to the next without producing any undesirable
effects.
For example
Satisfy_OL_requirement
Satisfy_UTME_requirement
Satisfy_post_UTME_requirement
Block Structure
Blocks are used to enable groups of statements to be treated as if
they were one statement.
If (cgpa > 4.5)
Print(“First Class Student”)
Block-structured languages Print(“Will get a job in the best industry”)
have a syntax for enclosing Print(“Will be a successful person’’)
structures in some formal way Endif
2. Modularization
Modularization is an act of breaking programs into modules, subroutines or
subprograms. Each module has a specific job and it is easy to write. Hence,
modular programming simplifies programming. Modularization is very related
to top down analysis because smaller problems are written as subprograms or
modules.
How does SP solve Complexity problem?
3. Structured Coding