Sunday, 28 October 2018

Programming Basic Concepts

What is a Program? A program is a set of instructions that tells the computer what to do.

Writing a program to guide a human is much easier than writing programs for computer hardware, as it requires familiarity and understanding of how they work. We also need to consider that a computer process specific set of instructions.

The Algorithm
Is a finite set of instructions that specify a sequence of operations to be carried out to solve a specific
problem or class or problems”(SWAZ89).


Criteria for Algorithm
1.    Input – there should be zero or more values that are to be supplied.
2.    Output – at least one result is to be produced.
3.    Definiteness – each step must be clear and unambiguous.
4.    Finiteness – if we trace the steps of an algorithm, then for all cases, the algorithm must terminate after a finite number of steps.
5.    Effectiveness – each step must be sufficiently basic that a person using only paper and pencil can, in principle, carry it out. In addition, not only is each step definite, but it must also be feasible.

          Is an outline of the logic of the program you will write. It is like doing a summary of the program before it is written. This expresses the logic of what you want the program to do.     

“Use of symbols and phrases to designate the logic of how a problem is solved”(SCHN95).

          “A common method for defining the logical steps of flow within a program by using a series of symbols to identify the Input, Process, and Outputs(IPO’s) function within a program”(TRA196).

          “A two-dimensional representation of an algorithm; the predefined graphic symbols of a flowchart are used to indicate the various operations and the flow of control”(SWAZ89).

            “A diagram representing the logical sequence in which a combination of steps or operations is to be performed. It is a blueprint of the program”(LAPU86).

2 comments:

Very interesting and helpful because it will help me to learn more about Introduction to programming

Post a Comment

If possible, leave a positive comment. No hate speech or elicit comments. Thank you.