Understanding Structured Programming
Learn about structured programming and how it compares to imperative programming.
What is structured programming?
Structured programming is what we’ve looked at in this course. Loops, conditionals, and functions define the flow of a program that uses this paradigm.
Structured programming is a branch of a family of paradigms called imperative programming. Languages that use the concepts of imperative programming use statements to change the program’s state. If we look at that definition, we must first learn what statements and program states are.
Statements
In the first part of this definition, we’ll talk about statements. A statement, as described earlier in this course, can be viewed as a command that we give to the application. In natural language, we have something that is called the imperative mood. The imperative mood is something that forms a command, such as “Move!” or “Don’t be late!” In imperative programming, we give instructions to the computer with something that’s like the imperative mood; that is, a command that is expressed in the form of a statement.
That is the first half of the definition of ...
Get hands-on with 1400+ tech skills courses.