Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 72 - 2615_KEC
P. 72

    Example 4: Write an algorithm and draw a flowchart to calculate the factorial of a number.

                      Algorithm:                                               Flowchart:
                      Step  1   Start.                                              Start

                      Step  2   Read the number n.
                                                                                   Read n
                      Step  3   Let i=1, fact=1
                      Step  4    Check If i < = n Then Repeat                   i = 1, fact = 1
                                Step 5 and 6 until i=n

                      Step  5   fact=fact*i                                           Is

                      Step  6   i=i+1                                                i < =    No
                                                                                     n?
                      Step  7   Print fact
                                                                                        Yes
                      Step  8   Stop.
                                                                                fact = fact*i
                                                                                                            Print fact
                                                                                    i = i + 1

                                                                                                             Stop

                                BRAINSTORMING

                      The strategy to generate ideas is called brainstorming.                                   Software
                                                                                                    Hospitals
                      It involves a group of people who sit together to discuss      Hardware  Useful in homes  Cost of computers
                      a topic and come up with ideas. Let us understand with           School                    ENIAC

                      an example  ‘Computer’.  Every  student  in  the  group       Railway Station and   Main Frame  Comparison of
                      comes up with their ideas which are written down in            Airport  History  Super Computer  prices
                      one place as shown:

                      During this discussion, we experience a storm of ideas originating from various brains.

                      PROCESS OF BRAINSTORMING SESSION

                      The following steps are involved in the process of the brainstorming session:
                      Step  1   Defining the Problem

                      Step  2    Selecting the Time, Place and Process

                      Step  3   Introducing the Facilitator
                      Step  4   Assessing Ideas

                      Step  5   Presenting Results

                      The conclusion can be derived in the form of a write-up or a mind-map and then presented to the
                      supervisor who needs to make a decision.

                       70   Premium Edition-VI

| 67 68 69 70 71 72 73 74 75 76 77 |