This document provides an introduction to programming languages. It defines what a programming language and program are, explaining that a programming language allows programmers to write instructions for a computer in a coded language. It classifies languages as high-level or low-level and discusses how computers understand different languages. The document also addresses why we need programming languages, how to select a language for a problem, and gives an overview of the basic steps to write a computer program.
Why do weneed it?
Why learn a language?
• You might need to deal with programmers in
the course of your work.
• You may also be required to do some
programming yourself in the future.
5.
Program & Programming
•What is a Program?
A program is a list of instructions for the
computer to follow to accomplish the task of
processing data into information.
• What is a programming?
programming is the act of writing (coding)
the program to process data.
6.
What’s a programmingLanguage?
• Coded language used by Programmers to write
instructions that a computer can understand to
do what the programmer (or the computer
user) wants.
Classification of Programming
languages
• High Level Languages
(C - C++ - C# - Java - VB)
• Low Level Languages
(Assembly – Machine Language)
9.
How can acomputer understand
these languages?
• The most basic (called low-level) computer language is
the machine language that uses binary ('1' and '0') code
which a computer can run (execute) very fast without
using any translator or interpreter program, but is very
complex. The high-level languages (such as Basic, C,
Java) are much simpler (more 'English-like') to use but
need to use another program (a compiler or an
interpreter) to convert the high-level code into the
machine code.
11.
Which Language isthe Best?
• No language is perfect or ideal than other
languages.
• No language has the best History.
• Every language has its place in programming
world!
12.
How we wouldselect a programming
language
• Compile vs. interpreted and assembly.
• Easy to use.
• Problem Domain.
• Security provision.
13.
How to bea Programmer?
What to learn?
• Tools or Platform ( Visual studio).
• White Papers and Pen.
• Any Reference you Like (Love) it (only one).
How can writea code?
Input Processing Output
(Program)
1- Define the Problem (build the algorithm).
2- Design the Program.
3- Write the Code.
4- Debug the Program.
5- Test the Program.