0 like 0 dislike
38 views
in Computer Science by (1.0m points)
Differentiate between Structured and Unstructured programming.

1 Answer

0 like 0 dislike
by (1.0m points)
Key Difference: The main difference between structured and unstructured programming language is that a structured programming language allows a programmer to code a program by diving the whole program into smaller units or modules. In unstructured programming language, the program must be written as a single continuous, i.e. nonstop or unbroken block.

When it comes to programming, there are two main types: Structured and Unstructured Programming. Each has its own languages. Unstructured Programming is historically the earliest type of programming that was capable of creating Turing-complete algorithms. As it was the earliest, it had its own set of advantages and disadvantages. Eventually, unstructured programming morphed and evolved into structured programming, which was easier to use. Structured programming eventually evolved into procedural programming and then object-oriented programming. Again, all with their own set of advantages and disadvantages.

With reference to programming, the main difference between structured and unstructured programming language is that a structured programming language allows a programmer to code a program by diving the whole program into smaller units or modules. This makes it easier to code, as the programmer can work on one segment of the code at a time. This also allows the programmer to check the module individually, before combining it with the program. Hence, it becomes easier to modify and debug, as the programmer can check and modify a single module, while leaving the rest of the program as is.

In unstructured programming language, however, the program must be written as a single continuous, i.e. nonstop or unbroken block. This makes it a bit complicated as the whole program is taken as one unit. Also, it becomes harder to modify and to debug, such as if there is a bug in the program, which there always is, the programmer much check the code of the entire program, as opposed to just one module.

 Additionally, unstructured programming languages allow only basic data types, such as numbers, strings and arrays (numbered sets of variables of the same type), which is not the case with structured programming languages. However, unstructured programming languages are often touted for providing freedom to programmers to program as they want. Structured programming languages often make extensive use of subroutines, block structures and for and while loops, as opposed to using simple tests and jumps such as the GOTO statement which could lead to “spaghetti code”, which unstructured programming languages do. Still, spaghetti code is highly difficult to follow and to maintain, which is why many people don’t prefer to use unstructured programming languages

Related questions

0 like 0 dislike
1 answer 47 views
0 like 0 dislike
1 answer 117 views
asked Apr 4, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 36 views
0 like 0 dislike
1 answer 77 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 104 views
0 like 0 dislike
1 answer 58 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 83 views
0 like 0 dislike
1 answer 72 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 22 views
0 like 0 dislike
0 answers 22 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.3k users

Free Hit Counters
...