Question

In: Operations Management

What are the advantages and disadvantages of using a repetition structure in an application?

What are the advantages and disadvantages of using a repetition structure in an application?

Solutions

Expert Solution

Repepetition structures, or loops, are used when a program needs to repeatedly process one or more instructions until some condition is met, at which time the loop ends. Many programming tasks are repetitive, having little variation from one item to the next. The process of performing the same task over and over again is called iteration.

Advantages

  • Complexity can be reduced using the concepts of divide and conquer.
  • Logical structures ensure clear flow of control.
  • Increase in productivity by allowing multiple programmers to work on different parts of the project independently at the same time.
  • Modules can be re-used many times, thus it saves time, reduces complexity and increase reliability.
  • Easier to update/fix the program by replacing individual modules rather than larger amount of code.
  • Ability to either eliminate or at least reduce the necessity of employing GOTO statement.

Disadvantages

  • Since Goto statement is not used, the structure of the program needs to be planned meticulously.
  • Lack of Encapsulation.
  • Same code repetition
  • Lack of information hiding
  • Change of even a single data structure in a program necessitates changes at many places throughout it, and hence the changes becomes very difficult to track even in a reasonable sized program.
  • Not much reusability of code.
  • Can support the software development projects easily up to a certain level of complexity. If complexity of the project goes beyond a limit, it becomes difficult to manage.

Related Solutions

What are the advantages and disadvantages of using a functional structure? Could a matrix structure be...
What are the advantages and disadvantages of using a functional structure? Could a matrix structure be used across a large corporate organization? Why or why not? What factors could determine the appropriate span of a manger's control? What are the corporate office's key concerns in creating and implementing strategy? Why?
What are the advantages and disadvantages of best-of-breed application systems solutions? What are the advantages and...
What are the advantages and disadvantages of best-of-breed application systems solutions? What are the advantages and disadvantages of integrated application systems solutions?
what are the advantages and disadvantages of matix organizational structure
what are the advantages and disadvantages of matix organizational structure
What are the advantages and disadvantages of using Trusted Platform Module (TPM)? What are the advantages...
What are the advantages and disadvantages of using Trusted Platform Module (TPM)? What are the advantages and disadvantages of using thin clients?
a) Compare the advantages and disadvantages of using an assemble-to-order process to the advantages and disadvantages...
a) Compare the advantages and disadvantages of using an assemble-to-order process to the advantages and disadvantages of a make-to-order process for a fast food hamburger restaurant. b) Henry Smith, the manager of the local branch of the state Department of Motor Vehicles, is attempting to analyze the driver’s license renewal operation. He has completed the data collection and has the following information. State Automobile License-Renewals Process Times Step Average Time to Perform (seconds) 1. Review renewal application for correctness 15...
What are the advantages and disadvantages to using a document control system?
What are the advantages and disadvantages to using a document control system?
what are some advantages and disadvantages of using online banking?
what are some advantages and disadvantages of using online banking?
What are the advantages and disadvantages of using Electronic Data Interchange?
What are the advantages and disadvantages of using Electronic Data Interchange?
what are the advantages and disadvantages of having a national, regional, local government structure in the...
what are the advantages and disadvantages of having a national, regional, local government structure in the united states of america?
What are the advantages and disadvantages of brick-and-mortar stores? What are the advantages and disadvantages of...
What are the advantages and disadvantages of brick-and-mortar stores? What are the advantages and disadvantages of online stores? Which are there more of and how will this trend continue? Please answer in complete sentences with an overall total of 150 words or more.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT