Page 70 - Computer Genius Class 06
P. 70

What is a Programming language?

                  Think about  how we communicate  with people around  us? Language is  our  primary  means  of
                  communication for all human interactions. Similarly, we can interact with computers via a language
                  that computers understand. This language is known as programming language.

                  Using programming  languages,  we can  provide instructions  to  a computer  to  perform  a set of
                  activities. These sets of instructions are called programs. Like any other language that has grammar,
                  programming languages have syntax. Some of the most frequently used programming language are
                  C, C++, Java, JavaScript, R, and Python.




                           The  first  programmer  or  the  first  person  to   rite  our  modern
                           understanding of a program was Ada Lovelace.




                  About Syntax

                  Syntax is the set of rules for writing a programming language. It is like the spelling and grammar of
                  the language that define its structure.
                  There are hundreds of programming languages used around the world and new ones are getting developed
                  all the time. Every programming language has its own syntax. But all programming languages have one
                  common thing, they are eventually converted into a language that the computer will understand.

                  Algorithm                                                    Step 1               Start

                  Representing the data in a sequential way (step by step)
                  is called algorithm.                                         Step 2           Take the fruits

                  Example: Write the step to make the fruit shake.
                                                                               Step 3         Take 2 bottles of milk



                                                                               Step 4   Cut the fruits & put it in the blender


                                                                               Step 5        Grind with the blender



                                                                               Step 6      Pour the milk in the blender



                  Features of an Algorithm                                     Step 7      Enjoy your yummy fruit juice

                  l   The algorithms should have clear explanations for each step.

                  l   Algorithms must be independent of programming language.
                  l   After a limited number of steps, algorithms must be stopped.

                  l   An algorithm must have a specific well-defined output and zero or more well-defined inputs.


                       68    Computer Genius-VI
   65   66   67   68   69   70   71   72   73   74   75