Lecture-1-Introduction Intro Programming
Lecture-1-Introduction Intro Programming
1 AND LOGIC
FORMULATION
Introduction: Computers and Programming Languages
Lecture 1
Computers and Programming
• A computer is just a machine (the hardware) for executing programs
(the software)
• Hence, the software rules the hardware!
Fortran Pascal
PL\1
Ada Ada98 C#
• If you want a computer to add two numbers, the instructions that the
CPU will carry out might be something like this:
Load the number from memory location 2001 into the CPU
Load the number from memory location 2002 into the CPU A Lot of
Add the two numbers in the CPU Work!
Store the result into location 2003
High-Level to Low-Level Languages
• In a high-level language like Python, the addition of two numbers can
be expressed more naturally:
c=a+b Much Easier!