Pseudocode

  • Understanding Pseudocode

Pseudocode is an informal high-level description and summary of computer programming algorithms using structural convection in a programming language, and also rendered to be read by humans and not for machines.

Pseudocode is also a code that is similar to actual programming, because Pseudocode is a combination of the words Pseudo which means imitation, resembling, or similar, and code means the language code of programming.

and also does not have standard rules in writing, and the language used is based on programming languages ​such as Pascal, C++, Basic, and others.

  • Functions and Purpose of Pseudocode
    1. Make it easier for users to understand and clarify how to solve a problem.
    2. as a documentation tool.
    3. Helping users in writing an algorithm that he made.
    4. Easy because it does not depend on a particular system and also aspects of Pseudocode including concise, and that is the main principle of the algorithm
  • Pseudocode features
    1. Pseudocode is a sign/notation/similar code, and also an explanation for how to solve a problem.
    2. Pseudocode is also often used by its users to write an algorithm for a problem.
    3. Pseudocode contains steps (steps) to solve a problem (like an algorithm), but the form of the problem is slightly different from the algorithm.
    4. Pseudocode has no fixed rules that bind its users.
    5. Pseudocode is a language that is similar to programming languages, but Pseudocode uses a language that is universally easy to understand, and is also more concise than algorithms.
  • Pseudocode Structure

There are 3 structures that make up a Pseudocode, namely:

  1. Title (contains the title of the algorithm)
  2. Description (contains variable and constant declarations)
  3. Implementation (contains the core algorithm)

these three structures must be sequentially starting from the title then the description, namely the content, and the implementation in which is the core part of the algorithm.

  • Pseudocode Example Calculating the Area of ​a Triangle

A triangular flat shape has the area formula, which is LΔABC = . pedestal . height as an example of calculating the area of ​a triangle that we will make into a pseudocode algorithm, it is known that a flat triangular shape has a base = 10 and a height of 15, what is the area of ​the triangle??

then in pseudocode algorithm language is as follows:

program calculate_area_triangle

deklaration


var area,base,height:integer;

algorithm:

base <– 10;

height <– 15;

area <– 1/2 * base * height

write(wide)

The need for digital IT is needed in daily activities, Bead IT Consultant is the right choice as your partner, visit our website by clicking this link: www.beadgroup.com