Page 58 - PortGPT_V2.1_C6_Flipbook
P. 58

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.




                  56    Premium Edition-VI
   53   54   55   56   57   58   59   60   61   62   63