CS118 –
Programming
Fundamentals
Lecture # 03
Spring 2022
Ms. Aysha Ashraf
, Basic Components of
2
C++ Program
CS118 - FALL 2020
, The Evolution of ProgrammingLanguages
4
Early computers were programmed in machine
language
To calculate wages =rates *hours in machine
language:
100100 010001 //Load rates
100110 010010 //Multiply
100010 010011 //Store in wages
CS118 - FALL 2020
, The Evolution of Programming Languages
5 (cont'd.)
Assembly language instructions aremnemonic
Assembler: Translates a program written in assembly
language into machine language
CS118 - FALL 2020
Programming
Fundamentals
Lecture # 03
Spring 2022
Ms. Aysha Ashraf
, Basic Components of
2
C++ Program
CS118 - FALL 2020
, The Evolution of ProgrammingLanguages
4
Early computers were programmed in machine
language
To calculate wages =rates *hours in machine
language:
100100 010001 //Load rates
100110 010010 //Multiply
100010 010011 //Store in wages
CS118 - FALL 2020
, The Evolution of Programming Languages
5 (cont'd.)
Assembly language instructions aremnemonic
Assembler: Translates a program written in assembly
language into machine language
CS118 - FALL 2020