CSC/ECE 517 Fall 2011/ch1 1e dm: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
=Block Structured Languages= | =Block Structured Languages= | ||
Structured programming takes on the top-to-bottom approach. | |||
§ Structured programming is based around data structures and subroutines. | |||
§ It splits the tasks into modular forms. This makes the program simpler and easier to read with less lines and codes. | |||
§ This type of program accomplishes certain tasks for that a specific reason. | |||
§ For example, invoice printers use structured programming. This type has clear, correct, precise descriptions. | |||
§ A structured program is decomposed into a hierarchy of processes. A process in this context is a body of | |||
code, typically a function or subroutine, that takes some input and manipulates it to produce an output. A process may be composed of other, more specialized processes, i.e., it may be a function that calls other functions. | |||
=Object Oriented Languages= | =Object Oriented Languages= |
Revision as of 19:31, 30 August 2011
CSC/ECE 517 Fall 2011/ch1 1e dm
Introduction
This wiki article describes the block structured and object oriented languages. It also highlights their advantages and limitations along with providing the comparison between them.
Block Structured Languages
Structured programming takes on the top-to-bottom approach.
§ Structured programming is based around data structures and subroutines. § It splits the tasks into modular forms. This makes the program simpler and easier to read with less lines and codes. § This type of program accomplishes certain tasks for that a specific reason. § For example, invoice printers use structured programming. This type has clear, correct, precise descriptions. § A structured program is decomposed into a hierarchy of processes. A process in this context is a body of code, typically a function or subroutine, that takes some input and manipulates it to produce an output. A process may be composed of other, more specialized processes, i.e., it may be a function that calls other functions.