Lecture 1 - Programming With VB
Lecture 1 - Programming With VB
By:
Collinson Colin Agbesi
Recommended Textbooks
1. Mike Snell & Lars Powers; “Microsoft Visual Studio 2010 Unleash”
Pearson Education, Inc.
2. Evangelos Petroutsos, “Mastering Microsoft Visual Basic 2010”,
Wiley Publishing Inc.
INTRODUCTION TO PROGRAMMING
What is Programming:
Programming is the act or process of writing instructions
or codes for the computer perform a specific task. It is a
way of telling the computer how to read and execute
instructions or codes.
By Level:
High Level Programming Language
Low Level Programming Language
By Generation
First
Second
Third
Fourth
Fifth
Beyond the Fifth
CLASSIFICATION OF PROGRAMMING
LANGUAGES: LEVEL
Class Triangle
{
float base, height, area;
area=base*height;
cout<<Area is <<area;
return 0;
}
CLASSIFICATION OF PROGRAMMING
LANGUAGES: LEVEL
LOAD x, y
ADD m, n
MUL r1, r2
DIV r1, r2
STOR r1, z
RET h
CLASSIFICATION OF PROGRAMMING
LANGUAGES: LEVEL
Example 1
10001001 11001010
11101010 10101001
10011110 10111011
11001010 11010010
11010100 10110010
10101001 10010011
CLASSIFICATION OF PROGRAMMING
LANGUAGES: GENERATION
Example:
1010 1001 1000 1001
1000 1010 1011 1100
1101 1110 1001 1110
1011 1010 1110 1111
1100 1110 1000 1101
1011 1001 1011 1011
Second Generation Languages: 2GL
Assembly languages
Symbolic operation codes are replaced by binary
operation codes.
Assembly language programs need to be converted by
the assembler for execution by the computer. Each
assembly language instruction is translated into one
machine language instruction.
Assembly language is much easier to write than Binary.
Example;
LOAD X
ADD R1, R2
STOR x, R3
DIV X, Y
Third Generation Languages: 3GL
Database applications
Form generators
Query generators
Report designers
Fifth Generation Languages: 5GL
Intelligent Programming
Declarative languages
Procedural Programming
Imperative Programming
Declarative Programming
PROGRAMMING LANGUAGE PARADIGMS