ALGORITHM and PSEUDOCODE
Algorithm - a set of steps to accomplish a task. In computer science or computer programming, algorithm is a step by step codes to do a certain program.
EXAMPLE
- Start the program.
- Initialize all the variables
- Input the values of variables
- Do the calculations, formulas and processes.
- Display the output
- End.
Pseudocode - a detailed and readable description of algorithm to do a task. It is used as detailed step of process of a program.
EXAMPLE
- Set the value of total to zero
- get all the number to be added
- add all the number and it will be the sum
- and divide the sum to the total numbers get
- display the total average
Resources:
http://whatis.techtarget.com/definition/algorithm
http://whatis.techtarget.com/definition/pseudocode
- Start the program.
- Initialize all the variables
- Input the values of variables
- Do the calculations, formulas and processes.
- Display the output
- End.
- Set the value of total to zero
- get all the number to be added
- add all the number and it will be the sum
- and divide the sum to the total numbers get
- display the total average
Resources:
http://whatis.techtarget.com/definition/algorithm
http://whatis.techtarget.com/definition/pseudocode
Can Algorithm and Pseudocode help me as a computer programmer ?
TumugonBurahinIndeed, Algo and Pseudo are most effective and helpful way of showing the flow of a program that will do a certain task.
BurahinThank You I hope This Information will help you!
Tnx for the info, my friends are going to take comprog!
TumugonBurahinWhat is the difference between algorithm and pseudocode?
Algo is the flow of the program that using a programming language.
BurahinWhile the Pseudocode can be written in english language
If you have more question, just comment here!
Tnx mark
TumugonBurahinWhich is better, algo or pseudo?
For the beginners, I will prefer to Use Pseudocode,
TumugonBurahinBut if you have knowledge of the programming language you will use, its the best to use aglo!
Thanks for the info . What among the two is the easiest to use ?
TumugonBurahinWell, pseudocode is more easier to use because you can use any language that you are comfortable to use to have guide for your program!
Burahinthankyou very much for such brillian question! :)
Thank you for the info. Why did you come up with this topic??
TumugonBurahinFirst of all, I want to help the other programmers that having difficulties in making algorithm and pseudocode, that is the reason fo my choosing this topic :)
BurahinGood Topic!
TumugonBurahinHow the Pseudocode helps the programmers?
it helps them to list down the steps that they will execute, even they will not use programming language!
Burahincan please Give another sample of peudocode about programming?
TumugonBurahin2. Set total to zero
BurahinSet grade counter to one
While grade counter is less than or equal to ten
Input the next grade
Add the grade into the total
Set the class average to the total divided by ten
Print the class average.
as you requested
that blog is good but What is the difference between a program and an algorithm?
TumugonBurahinWOW! what a good question.
BurahinProgram is a series of steps of events to finish a task
While the algorithm, is also a series of steps, but it is written in programming language and uses the logic that the programmer needed to a task!
This really help me because i'm a computer programmer student! Which of these two is best to use, Pseudocode or Algorithm?
TumugonBurahinWell Since you are a computer programming student, It's advisable for you to use the algorithm, because is also display the logic and formulas you needed for a program!
BurahinThank you for the info., for you what is the best to use flowchart,algo or pseudo?
TumugonBurahin