Section Description Of Algorithm

Description is the substance business office of the algorithm structure. This department contains a description of the troubleshooting steps. These steps are written amongst a mutual annotation inwards the writing of algorithms. Each measurement of the algorithm is read from the transcend measurement to the bottom step. The sequence of writing determines the social club of execution of the command. As described inwards chapter i that the compiler or the basic construction of the algorithm is a step. An Algorithm tin consist of 3 basic structures, namely sequence, alternative as well as repetition. These 3 types of steps cast the construction of an algorithm. In this department of the description of the 3 structures of the algorithm.

An event of the algorithm description department calculates the expanse of the circle:

Description:
1. Read radius
2. Calculate expanse = radius * radius * PHI
3. Show broad to the screen
4. Finish

An event algorithm calculates the expanse of a circle written using a consummate descriptive sentence:

Algorithm Area Circles
{Calculate the expanse of the circle for the size of a specific radius.
The algorithm receives the input of the radius of the circle, calculating
extent, as well as thus impress the extent to the output device}

Declaration:
Radius = existent {data type of fractional}
area = existent {data type of fraction}
PHI = 3.14

Description:
1. Read radius
2. Calculate expanse = PHI * radius * radius
Show broad to the screen
4. Done

Similarly this article.
Sorry if at that spot is a incorrect word.
The terminate of discussion wassalamualaikum wr. wb

Referensi :
  • Ebook Logical as well as Algorithm

Artikel Terkait