Martes, Marso 27, 2018

ALGORITHM and PSEUDOCODE

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
  1. Start the program.
  2. Initialize all the variables
  3. Input the values of variables
  4. Do the calculations, formulas and processes.
  5. Display the output
  6. 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

  1. Set the value of total to zero
  2. get all the number to be added
  3.  add all the number and it will be the sum
  4. and divide the sum to the total numbers get
  5. display the total average







Resources:
http://whatis.techtarget.com/definition/algorithm
http://whatis.techtarget.com/definition/pseudocode

19 (na) komento:

  1. Can Algorithm and Pseudocode help me as a computer programmer ?

    TumugonBurahin
    Mga Tugon
    1. Indeed, Algo and Pseudo are most effective and helpful way of showing the flow of a program that will do a certain task.
      Thank You I hope This Information will help you!

      Burahin
  2. Tnx for the info, my friends are going to take comprog!

    What is the difference between algorithm and pseudocode?

    TumugonBurahin
    Mga Tugon
    1. Algo is the flow of the program that using a programming language.
      While the Pseudocode can be written in english language
      If you have more question, just comment here!

      Burahin
  3. Tnx mark
    Which is better, algo or pseudo?

    TumugonBurahin
  4. For the beginners, I will prefer to Use Pseudocode,
    But if you have knowledge of the programming language you will use, its the best to use aglo!

    TumugonBurahin
  5. Thanks for the info . What among the two is the easiest to use ?

    TumugonBurahin
    Mga Tugon
    1. Well, pseudocode is more easier to use because you can use any language that you are comfortable to use to have guide for your program!
      thankyou very much for such brillian question! :)

      Burahin
  6. Thank you for the info. Why did you come up with this topic??

    TumugonBurahin
    Mga Tugon
    1. First 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 :)

      Burahin
  7. Good Topic!
    How the Pseudocode helps the programmers?

    TumugonBurahin
    Mga Tugon
    1. it helps them to list down the steps that they will execute, even they will not use programming language!

      Burahin
  8. can please Give another sample of peudocode about programming?

    TumugonBurahin
    Mga Tugon
    1. 2. Set total to zero

      Set 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

      Burahin
  9. that blog is good but What is the difference between a program and an algorithm?

    TumugonBurahin
    Mga Tugon
    1. WOW! what a good question.
      Program 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!

      Burahin
  10. This really help me because i'm a computer programmer student! Which of these two is best to use, Pseudocode or Algorithm?

    TumugonBurahin
    Mga Tugon
    1. Well 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!

      Burahin
  11. Thank you for the info., for you what is the best to use flowchart,algo or pseudo?

    TumugonBurahin