Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 87 - CodePilot V5.0 C7
P. 87

    ACTIVITY-4

                        Design an algorithm for a number-guessing game
                        in which the player must enter a number between
                        10 and 20. If the player enters a number within this
                        range, the game should display a congratulations
                        message and stop. If the number is outside the
                        range, the game should prompt the player to try
                        again until a valid number is entered. Break the
                        game into clear, step-by-step instructions.

                                                               ACTIVITY-5

                        Create a flowchart for a Number-Guessing Game on ACTIVITY-4.

                            EVALUATION

                     Evaluation involves testing different solutions, comparing them and choosing the best one based
                     on efficiency, accuracy and smartness. When solving a problem, there are often multiple ways to
                     approach it. To evaluate solutions, ask yourself:

                         Efficiency: How quickly can the task be completed?
                         Accuracy: Does the solution give the correct result?
                         Smartness: Is the solution simple, using fewer steps or resources?

                     For example, if you are sorting a list of names, you could try different sorting methods and select
                     the one that is fastest, most accurate and easiest to implement. Evaluation ensures that the
                     solution is not only correct but also practical and optimal.

                                                                                                                      85
                                                                                              Problem Solving Simplified

| 82 83 84 85 86 87 88 89 90 91 92 |