Table of Contents

View page as slide show

Programming Fundamentals

Mithat Konar
with material from Capron's “Essentials of Computing”, 2/e

What is programming?

What programmers do

Programming languages

Levels of language

Machine language

10110110100100101101011101001010
10110110110101101101011011000111

Assembly language

MOV AL, 1h
MOV CL, 2h
MOV DL, 3h

High-level languages

if score > 60:
    print('You passed!')
else:
    print('Try harder!')

Very high-level languages

Natural language programming

Kinds of translation

Kinds of errors

Programming process

  1. Define the problem.
  2. Design a solution.
  3. Code the solution.
  4. Test the solution.
  5. Document the solution.

Define the problem

Design a solution

Code the solution

Test the solution

Document the solution

Programming tools

Fin

<html> <script> var uls = document.getElementsByTagName('ul'); for(var i=0,j=uls.length;i<j;++i){uls[i].setAttribute('class','incremental')} </script> </html>