Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 74 - 2625 PortGPt V2.1
P. 74

    Solution:

                                                         Start

                                                      Read a, b, c

                                                      S = a + b + c

                                                        A = S/3

                                                           If     Yes
                                                         A> 60          Print 'Above average marks'
                                                             No

                                               Print 'Below average marks'

                                                          End

                        Coding          uiz    02

                                                                                                           Subject Enrichment
                          Fill in the blanks.

                          a.  A ...................... is a graphical representation of step-by-step plan in a sequential
                              order to represent the flow of algorithm.

                          b.  ...................... symbol of flowchart represents start/end of a process.

                      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, 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.

                      72    Premium Edition-VI

| 69 70 71 72 73 74 75 76 77 78 79 |