Itetration

Submitted by: Submitted by

Views: 335

Words: 487

Pages: 2

Category: Literature

Date Submitted: 07/20/2011 12:06 PM

Report This Essay

Iteration approach

Darnell Smith

PRG/210

Iteration approach

Before scripting a program to solve a certain particular problem, it is necessary to have a comprehensive understanding of the problem and a particular approach to solve that problem. When reviewing a program, it is equally important to understand the types of building blocks that are available such Algorithms, Pseudocode, and Control structures. Each approach has a certain layout that must be followed. I will show how certain approaches work.

The IRCC.edu (2006-2010) website states “for many years program analysts have been using an approach to program design called “structured design” in which programs are assembled like building blocks from simple “structures” that define the flow of control to be followed by a processor when executing the program’s commands. Three simple structures have been identified that suffice to build a solution to any complex task. These structures are known as: Sequence, Selection, and Repetition.”

The null else structure is based on a simple structure of IF. If something is correct then the task will be performed in a particular order, if it is false then it will be retried and done over. An example could be:

IF internet light = green

THEN add 1 to green light

END IF

The points that go to the green light will be changed if there is more than one green light on the internet.

Repetition Control Structures constitutes one of the most powerful and basic programming concepts. In a Repetition Control Structure, the program raises numerous questions. If the answer demands action, it is performed; consequently, the original question is asked continuous until the answer is such that the action is no longer necessary. For example, a program written to compute a company’s payroll for each employee’s will begin by computing the wages of one employee and continue performing that action in a repetition until there are no more employees Each pass through the Repetition...

More like this