Transcript of "Introduction to programming languages"
Introduction to Programming Languages Sayed Mahmoud AbdEl-Rahman
What is the meaning of Programming Language?• Programming language is like any other language around the world.• English – Arabic – Spanish – French.
What’s in a language?• Words.• Grammars.• Expressions & sentences.
Why do we need 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.
Program & Programming• What is a Program? A program is a list of instructions for thecomputer to follow to accomplish the task ofprocessing data into information.• What is a programming? programming is the act of writing (coding)the program to process data.
What’s a programming Language?• 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)
How can a computer 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.
Which Language is the Best?• No language is perfect or ideal than other languages.• No language has the best History.• Every language has its place in programming world!
How we would select a programming language• Compile vs. interpreted and assembly.• Easy to use.• Problem Domain.• Security provision.
How to be a Programmer? What to learn?• Tools or Platform ( Visual studio).• White Papers and Pen.• Any Reference you Like (Love) it (only one).
What should been you know ?• Syntax.• Selection (If , Switch)• Loops (For , While)• Functions.• Pointer , Arrays, References• Classes, object• File IO
How can write a 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.