| 1. |
What is structured programming? Explain its advantages. |
|
Answer» Structured Programming: means the collection of principles and practices that are directed toward developing correct programs which are easy to maintain and understand. A structured program is characterized by clarity and simplicity in its logical flow. The Three important constructs upon which structured programming is built are: • Sequence-Steps are performed one after the other. • Selection-Logic is used to determine the execution of a sequence of steps. For example,if-then-else construct. • Iteration-A set of actions are repeated until a certain condition is met. For example while construct. The various advantages of structured programming are: 1. Complexity of program reduces. 2. Easy maintenance. 3. Simplified understanding. 4. Reusability of code increases. 5. Testing and debugging become easier. |
|