Page 101 - 2502_Pakistan-kifayat_C-6
P. 101

Creating Mobile Apps: They are used to make apps for phones and tablets, like games or social
               media apps.

                Learning to Program: High-level languages are good for learning how to program because they are
               simple and easy to understand.

                Solving Problems: They are also used for doing complex tasks like helping scientists make predictions
               or teaching robots to think.




                     Double Tap                                              Century   #Technology Literacy
                                                                               21 st
                                                                               Skills  #Productivity & Accountability
                   Write the names of any three high-level programming languages.

                       1.                              2.                           3.





                 DISTINGUISHING BETWEEN AN ALGORITHM AND A PROGRAM

            The following table shows the difference between algorithm and program:


                    Aspect                        Algorithm                                 Program

             Definition            A step-by-step set of instructions to solve  A collection of instructions written
                                   a problem.                                  in a programming language.

             Purpose               To  provide  a  solution  or  method  for  To implement  the  algorithm  and
                                   solving a problem.                          perform tasks on a computer.

             Language              Written in plain language or pseudocode  Written in a specific programming
                                   (language-agnostic).                        language (e.g., Python, Java).


             Execution             Cannot  be  executed  by  a  computer  Can be executed by a computer to
                                   directly.                                   perform tasks.

             Representation        Represented as pseudocode,  flowcharts,  Represented as source code in a
                                   or natural language.                        programming language.

             Level                 Abstract and high-level description.        Concrete    and    detailed    code
                                                                               implementation.

             Dependency            Independent     of   any    programming Dependent  on  a programming
                                   language or platform.                       language and a computer system.

             Example               Steps to find the largest number in a list.  Python program to find the largest
                                                                               number in a list.








                                                                                 #Fundamentals of Programming  99
   96   97   98   99   100   101   102   103   104   105   106