Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 113 - logicode 2609 C6
P. 113

    So, to find the meaning of a particular word in a dictionary, you need to follow a set of steps.
                     Similarly, before writing a program for a given problem, it is important to define a set of steps
                     which need to be followed to solve the problem successfully. This sequence of the set of steps is
                     called an algorithm.
                                                            Q

                                                                 f         ANSWERS

                                                         A                 b      K

                                                       B         C                   a

                          Tick ( ) if you know this.

                          ▶  Language is the primary means of communication for all human interactions.
                          ▶  The syntax is a set of rules that we need to follow when we write a computer program.

                               PSEUDOCODE

                     Pseudocode is used to describe the steps of an algorithm in a human-understandable language.
                     It has no syntax and can be easily understood by a layman. So, pseudocode is an informal way of
                     writing programs in which there is no need to think about semi-colons, and curly brackets.

                     CHARACTERISTICS OF PSEUDOCODE

                       It uses structured English statements.
                       It can be reviewed/verified easily to see if it generates the desired outcome.
                       You can focus on all possible scenarios. So, this helps you to understand the potential problems

                        that might come up later.
                       Writing pseudocode will help to write your code much easier.

                     ADVANTAGES OF PSEUDOCODE

                        It is language-independent and can be used by most programmers to express the design in
                        plain and natural language.
                       Programmers do not have to think about syntax, they simply have to concentrate on logic.

                       The focus is on the steps to solving a problem rather than how to use the computer language.

                                                                                               Using MakeCode Arcade  111

| 108 109 110 111 112 113 114 115 116 117 118 |