2.
Introduction of Computer Programming
Definition:
A
computer program is a sequence of instructions written using a Computer
Programming Language to perform a specified task by the computer.
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 earlier,
there are hundreds of programming languages, which can be used to write
computer programs and following are a few of them −
- Java
- C
- C++
- Python
- PHP
- Perl
- Ruby
Uses of Computer Programs:
Today computer programs are
being used in almost every field, household, agriculture, medical,
entertainment, defense, communication, etc. Listed below are a few applications
of computer programs −
·
MS
Word, MS Excel, Adobe Photoshop, Internet Explorer, Chrome, etc., are examples
of computer programs.
·
Computer
programs are being used to develop graphics and special effects in movie
making.
·
Computer
programs are being used to perform Ultrasounds, X-Rays, and other medical
examinations.
·
Computer
programs are being used in our mobile phones for SMS, Chat, and voice
communication.
Computer Programmer:
Someone who can write
computer programs or in other words, someone who can do computer programming is
called a Computer Programmer.
Based on computer
programming language expertise, we can name a computer programmers as follows −
- C Programmer
- C++ Programmer
- Java Programmer
- Python Programmer
- PHP Programmer
- Perl Programmer
- Ruby Programmer
Problem
Solving:
Solving problems is the core of
computer science. Programmers must first understand how a human solves a
problem, then understand how to translate this "algorithm" into
something a computer can do, and finally how to "write" the specific
syntax (required by a computer) to get the job done. It is sometimes the case
that a machine will solve a problem in a completely different way than a human.
In
order to solve a problem by the computer, one has to pass though certain stages
or steps.
They
are
1.
Understanding the problem
2. Analyzing the problem
3.
Developing the solution
4.
Coding and implementation.
1.
Understanding the problem: Here we
try to understand the problem to be solved in totally. Before with the next
stage or step, we should be absolutely sure about the objectives of the given
problem.
2.
Analyzing the problem: After
understanding thoroughly the problem to be solved, we look different ways of
solving the problem and evaluate each of these methods. The idea here is to
search an appropriate solution to the problem under consideration. The end
result of this stage is a broad overview of the sequence of operations that are
to be carries out to solve the given problem.
3. Developing the solution: Here the
overview of the sequence of operations that was the result of analysis stage is
expanded to form a detailed step by step solution to the problem under
consideration.
4.
Coding and implementation: The last
stage of the problem solving is the conversion of the detailed sequence of
operations in to a language that the computer can understand. Here each step is
converted to its equivalent instruction or instructions in the computer
language that has been chosen for the implantation.