Page 58 - IT_V5.0_Class8
P. 58

4.  Give four basic rules that we follow while writing an algorithm.

                         ...................................................................................................................................................................................
                         ...................................................................................................................................................................................

                         ...................................................................................................................................................................................
                         ...................................................................................................................................................................................

                      5.  What is the use of diamond symbol in a flowchart? Explain with example.
                         ...................................................................................................................................................................................

                         ...................................................................................................................................................................................
                         ...................................................................................................................................................................................

                         ...................................................................................................................................................................................
                         ...................................................................................................................................................................................

                         ...................................................................................................................................................................................

                         ...................................................................................................................................................................................
                      6.  Write an algorithm to do the following:
                          a.  To input selling price and cost price and calculate the profit or loss.

                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................
                               .............................................................................................................................................................................

                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................
                          b. To input three numbers and display the average of the three numbers.

                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................

                          c. To input a number and display the square of a number.
                               .............................................................................................................................................................................

                               .............................................................................................................................................................................
                               .............................................................................................................................................................................




                    56    Information Technology (V5.0)-VIII
   53   54   55   56   57   58   59   60   61   62   63