Lecture 1
Lecture 1
Introduction
DR. HAGER HUSSEIN
2
Learning outcomes
Given any piece of code, Can you answer “Is the function correct?” ?.
This question can’t be answered without knowing what the program is
supposed to be doing.
One way to identify the behavior of the program is to analyze the code.
Problems with that approach:
Reading someone else’s code is a frustrating and an unreliable task.
If we succeed in the attempt to understand “what’s going on,”, we still cannot
decide about the program’s correctness because by reading the code we can
only identify the actual program behavior, rather than the intended one.
4
Specification
Assessment Method
7th Week (30%) Exam(20) + Section Quiz1(5) + Section
Quiz2(5)
Thank You