Professional Documents
Culture Documents
Computer Programming
Computer Programming
PROGRAMMING
ZORAYDA L. REAZON
INSTRUCTOR
What is programing?
❖ Computer programming is the process of performing a
particular computation, usually by designing/building an
executable computer program.
❖ Programming involves tasks such as:
1. Analysis
2. Generating algorithms
3. Profiling algorithms' accuracy
4. Resource consumption
5. Implementation of algorithms.
Type of programming languages
❖ Machine language
• Only language computer directly understands
• “Natural language” of computer
• Define by hardware design
➢ Machine-dependent
• Generally consist of strings of numbers
➢ Ultimately 0s and 1s
• Instruct computers to perform elementary operations
➢ One at a time
• Cumbersome for humans
• Example:
► +1300042774
► +1400593419
► +1200274027
Type of programming languages
❖ Assembly language
• English-like abbreviations representing elementary
computer operations
• Clearer to humans
• Incomprehensible to computers
➢ Translator programs (assemblers)
• Convert to machine language
• Example:
➢ LOAD BASEPAY
➢ ADD OVERPAY
➢ STORE GROSSPAY
Type of programming languages
❖ High-level languages
• Similar to everyday English, use common mathematical
notations
• Single statements accomplish substantial tasks
➢ Assembly language requires many instructions to
accomplish simple tasks
• Translator programs (compilers)
➢ Convert to machine language
• Interpreter programs
➢ Directly execute high-level language programs
• Example:
➢ grossPay = basePay + overTimePay
What are Interpreters, compilers and
assemblers?
❖ Interpreter:
it converts each high level instruction into a series of machine
instructions and then immediately run (or execute) those
instructions.
❖ Compilers:
convert a finished program (or section of a program) into object
code. This is often done in steps.
❖ Assemblers:
program which convert the symbolic instructions ( which is
written in an assembly language) into object or machine code.
Size of programs
https://www.slideshare.net/VarunGarg7/lect-1-introduction-to-programming-languages
https://www.britannica.com/technology/machine-language