Lecture overview -- Keyboard shortcut: 'u'  Previous page: From structured programming to object-oriented programming [Section] -- Keyboard shortcut: 'p'  Next page: A structured program: Hangman -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 2 : 22
Object-oriented Programming in C#
Introduction to Object-oriented Programming
Structured Programming

Structured programming stands as a contrast to unstructured programming. Unstructured programming is a reminiscence of low-level, machine language programming with explicit use of goto statements.

Structured programming relies on use of high-level control structures instead of low-level jumping

Structured programming is also loosely coupled with top-down programming and program development by stepwise refinement

  • Structured top-down programming by stepwise refinement:

    • Start by writing the main program

      • Use selective and iterative control structures

      • Postulate and call procedures P1, ...,Pn

    • Implement P1, ... Pn, and in turn the procedures they make use of

    • Eventually, the procedures become so simple that they can be implemented without introducing additional procedures

Program Development by Stepwise Refinement is the title of a famous paper written by Niklaus Wirth in 1971. Niklaus Wirth is the inventor of the programming language Pascal. In this paper Wirth argues how to decompose a task in subtask, in a top-down fashion.