Page 108 - Computer Science Class 11 Without Functions
P. 108

Case Based Questions


           1.  Each one of you must have seen a traffic light. It has three colours - red, amber, and green which indicate the passerby to
              stop, be ready, and go, respectively. While teaching problem-solving in class, the teacher assigns you the task - of creating
              an algorithm for crossing a traffic signal. Complete the assigned task.

         Ans:  Algorithm:
              while traffic signal is amber or red
                  Wait
              end-while
                  Quickly cross the road
           2.  Surya is an entrepreneur. He is trying to get investments for his latest project. He has got a database of potential investors
              with their names and the maximum amount that they can invest. From that database, he wants his secretary to prepare a
              list of only those investors who can invest a minimum amount of 25 lakhs and are available for an appointment. If he gets
              an appointment, he will save the date to his calendar, otherwise, he will ignore the investor. For this, Surya wants to create
              a flowchart for his secretary, so that she has a clear idea about the entire process. Surya knows that once the process is
              understood, the secretary will be able to apply it to all the potential investors. Help Surya to complete his task.


                                     Start



                                 Pick up name of
                                    investor



                                      Is
                                    amount       Yes     Add name to
                                  > = 2500000               the list





                                       No                     Is
                                                         appointment   Yes  Save appointment
                                                          date fixed             date

                                                               No











                                     Stop

                                             Process flow for handling an investor

           3.  Zaira is very fond of number games. Her teacher gave her a task to accept a number and display the following series till that
              number.
              1,    4,    9,    16,    25,   …,   n 2
              She wants to write a pseudocode and draw a flowchart to solve this problem. Help her complete the task.





         106   Touchpad Computer Science-XI
   103   104   105   106   107   108   109   110   111   112   113