Cs112 - Programming Fundamental: Lecture # 02 - Program Design Methodology Syed Shahrooz Shamim
Cs112 - Programming Fundamental: Lecture # 02 - Program Design Methodology Syed Shahrooz Shamim
Cs112 - Programming Fundamental: Lecture # 02 - Program Design Methodology Syed Shahrooz Shamim
LOAD r1,b
LOAD r2,h
Low-level program MUL r1,r2
DIV r1,#2
RET
0001001001000101001
Executable Machine code 0010011101100101011
01001...
Programming Language Translator
• Assembler
• Interpreter
• Compiler
Program design methodology
• Procedural driven design
• Event-driven design
• Data driven design
Procedural Driven Design
• Procedural programming is the standard approach used in
traditional computer language such as C, Pascal,
FORTRAN & BASIC.
int Fibonacci(int n)
{ if ( n == 0 )
return 0;
else
if ( n == 1 )
return 1;
else
return ( Fibonacci(n-1) +Fibonacci(n-2));
}