Problem Definition - specifies the what the computer to do.
Problem Analysis
-Input - specifies the input of the program
-Output - specifies the output of the program
Algorithm Development
-Process - step by step process to solve a problem
-Flowchart and Pseudocode - step by step process but we will used the symbols in flowchart
Coding and Debugging - creating a program and fixing the errors
Wednesday, June 23, 2010
Tuesday, June 22, 2010
Flowchart
Flowchart represent the algorithm or process of data, using chart or sysmbols.
There are different Flowchart symbols. the ff. are:
1. Terminal sysmbol - (oval) this symbol represent the start and end of the flowchart.
2. Initialization Symbol - (hexagon) this symbol is used in declaring or initializing variable used in the program.
3. Process Symbol (Rectangle) this symbol used in calculation, opening and closing file paths.
4. Condition Symbol (Diamond) this symbol used in condition of value in programming. this condition have a one entrance two exit which is the first exit is the "TRUE STATEMENT" and other exit is the "FALSE STATENENT".
5. Input and Output Symbol (parallelogram) this symbol used in input and output of the program. there is one entrance and one exit.
6. Connector (small Circle) it is used in connection flowchart that does not adjacent of not the same patcular area.
7. Arrow Lines (arrow) this is used to connect or the direction or flow of data.
There are different Flowchart symbols. the ff. are:
1. Terminal sysmbol - (oval) this symbol represent the start and end of the flowchart.
2. Initialization Symbol - (hexagon) this symbol is used in declaring or initializing variable used in the program.
3. Process Symbol (Rectangle) this symbol used in calculation, opening and closing file paths.
4. Condition Symbol (Diamond) this symbol used in condition of value in programming. this condition have a one entrance two exit which is the first exit is the "TRUE STATEMENT" and other exit is the "FALSE STATENENT".
5. Input and Output Symbol (parallelogram) this symbol used in input and output of the program. there is one entrance and one exit.
6. Connector (small Circle) it is used in connection flowchart that does not adjacent of not the same patcular area.
7. Arrow Lines (arrow) this is used to connect or the direction or flow of data.
Monday, June 21, 2010
Pseudocode
An outline of a program, written in a form that can easily be converted into real programming statements. For example, the pseudocode for a bubble sort routine might be written:
while not at end of list
compare adjacent elements
if second is greater than first
switch them
get next two elements
if elements were switched
repeat for entire list
Pseudocode cannot be compiled nor executed, and there are no real formatting or syntax rules. It is simply one step - an important one - in producing the final code. The benefit of pseudocode is that it enables the programmer to concentrate on the algorithms without worrying about all the syntactic details of a particular programming language. In fact, you can write pseudocode without even knowing what programming language you will use for the final implementation.
while not at end of list
compare adjacent elements
if second is greater than first
switch them
get next two elements
if elements were switched
repeat for entire list
Pseudocode cannot be compiled nor executed, and there are no real formatting or syntax rules. It is simply one step - an important one - in producing the final code. The benefit of pseudocode is that it enables the programmer to concentrate on the algorithms without worrying about all the syntactic details of a particular programming language. In fact, you can write pseudocode without even knowing what programming language you will use for the final implementation.
Algorithm
'algorithm' is an effective method for solving a problem expressed as a finite sequence of instructions.
step by step procedure to solve the problem.
step by step procedure to solve the problem.
Thursday, June 3, 2010
Array
Array is very important in programming to store data in array. i post the lesson next day.
Labels:
add two numbers in java,
array in java,
array-java
Monday, May 3, 2010
Array
An array is a collection of individual values, all of the same data type, stored in adjacent memory locations. ... The individual values are referred to by using the array name together with an integral valued index in square brackets.
I will give a sample program using array, next lesson.
I will give a sample program using array, next lesson.
Subscribe to:
Posts (Atom)