October 28, 2018 -
Klase Notes,Programming,Programming Notes
2 comments
Klase Notes,Programming,Programming Notes
2 comments
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.
The Pseudocode
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.
The Flowchart
“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).
2 comments:
Very interesting and helpful because it will help me to learn more about Introduction to programming
best way to download latest version of notepad++ plugin manager
Post a Comment
If possible, leave a positive comment. No hate speech or elicit comments. Thank you.