Computer Programming

 Computer Programming  



 Introduction to Computer Program

 Before getting into computer computer programming, programming, let us first understand understand computer programs programs and what they do.

A computer computer program program is a sequence sequence of instructions instructions written written using a Computer Computer Programming Programming Language to perform a specified task by the computer. 

The two important terms that we have used in the above definition are − 

        a. Sequence of instructions 

        b. Computer Programming Language 

To understand understand these terms, consider consider a situation situation when someone someone asks you about how to go to a nearby KFC. What exactly do you do to tell him the way to go to KFC? 

   You will use Human Language to tell the way to go to KFC, something as follows −  

            First go straight, straight, after half kilometer kilometer, take left from the red light and then drive around one kilometer and you will find KFC at the right.

           Here, you have used English English Language to give several several steps to be taken to reach KFC. If they are followed in the following sequence, then you will reach KFC − 

1. Go straight 

2. Drive half kilometer

3. Take left 

4. Drive around one kilometer 

5. Search for KFC at your right side 

Now, try to map the situation situation with a computer computer program. program. The above sequence equence of instructions instructions is actually a Human Program written in English Language, 

which instructs instructs on how to reach KFC from a given starting starting point. This same sequence sequence could have been given in Spanish, Spanish, Hindi, Arabic, Arabic, or any other human language, language, provided provided the person seeking seeking direction direction knows any of these languages. 

Now, let's go back and try to understand understand a computer computer program, program, which is a sequence sequence of instructions instructions written written in a Computer Computer Language Language to perform perform a specified specified task by the computer computer. Following Following is a simple     

           program written in Pythonprogramming Language − 

print "Hello, World!" 

The above computer computer program program instructs instructs the computer computer to print "Hello, "Hello, World!" on the computer computer screen.

             (a) A computer program is also called a computer software, which can range from two lines to                      millions of lines of instructions.

           (b) Computer Computer program program instructions instructions are also called program                           program source code and computer programming is also called program coding

            (c)  A computer computer without without a computer computer program is just a dump box;                         it is programs programs that make computers active.

As we have developed developed so many languages languages to communicate communicate among ourselves, ourselves, computer computer scientists scientists have developed developed several several computer-p computer-programming rogramming languages languages to provide provide instructions instructions to the computer computer (i.e., to write computer computer programs). programs). We will see several several computer computer programming programming languages languages in the subsequent chapters. 

Introduction to Computer Programming 

If you understood what a computer program is, then we will say: the act of writing computer programs is called computer programming. As we mentioned mentioned earlier earlier, there are hundreds hundreds of programming programming languages, languages, which can be used to write computer programs and following are a few of them − 

Java 

C++ 

Python 

PHP 

Perl 

Ruby 

Uses of Computer Programs 

Today computer programs rograms are being used in almost every field, household, household, agriculture, agriculture, medical, medical, entertainment, entertainment, defense, communication, communication, etc. Listed below are a few applications applications of computer computer programs −

 MS Word, MS Excel, Adobe Photoshop, Photoshop, Internet Internet Explorer Explorer, Chrome, Chrome, etc., are examples examples of computer programs.


     .    Computer programs are being used to develop develop graphics graphics and special special effects in movie making. 

      .    Computer Computer programs programs are being used to perform perform Ultrasounds, Ultrasounds, X-Rays, X-Rays, and other medical medical examinations. 

           Computer Computer programs programs are being used in our mobile phones for SMS, Chat, and voice communication. 

Computer Programmer 

Someone Someone who can write computer computer programs programs or in other words, someone who can do computer computer programming is called a Computer Programmer. 

Based on compute computer programming programming language language expertise, expertise, we can name a computer computer programmers programmers as follows − 

C Programmer 

C++ Programmer 

Java Programmer 

Python Programmer 

PHP Programmer 

Perl Programmer 

Ruby Programmer 

Algorithm 

From programming point of view, an algorithm is a step-by-step step-by-step procedure procedure to resolve resolve any problem. problem. An algorithm is an effective method expressed as a finite set of well-defined instructions. 

Thus, a computer computer programmer programmer lists down all the steps required required to resolve resolve a problem problem before writing writing the actual code. Following Following is a simple example example of an algorithm algorithm to find out the largest largest number from a given list of numbers − 

1. Get a list of numbers L , L , L ....L 

2. Assume L is the largest, Largest = L 

3. Take next number L from the list and do the following 

4. If Largest is less than L 5. Largest = L 

6. If L is last number from the list then 

7. Print value stored in Largest and come out 

8. Else repeat same process starting from step 3 

The above algorithm algorithm has been written in a crude way to help beginner beginners understand understand the concept. concept. You will come across more standardized standardized ways of writing writing computer computer algorithms algorithms as you move on to advanced levels of computer programming.

Below You may know what is computer engineering

Comments