Professional Documents
Culture Documents
Lecture 45
Review & Wrap-Up
During the last lecture we discussed Programming Methodology
•We looked at a few effective programming practices that result in the development of
correct programs with minimum effort
•We also became familiar with testing & debugging
readable
program?
Types of Errors
•Syntax errors
•Semantic errors
•Run-time errors
Today’s Goal:
(Review & Wrap-Up)
•To review some of the interesting ideas that we discussed over the last 44 lectures
•Please note that this lectures is not a comprehensive review, just a sampler!
Course Objectives
Page 2 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
Hardware
System software
Application software
Page 3 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
The Role of An OS
•Manages the HW and SW resources of the computer system, often invisibly. These
include the processor, memory, disk drives, etc.
•Provides a simple, consistent way for applications to interact with the HW without
having to know all the details of the HW
Who Owns Software?
•Generally, although a piece of SW that is being used by millions, it is not owned by any
of them!
•When we buy a SW package, we do not really buy it – we just buy a license that allows
us to use it, the ownership stays with the maker
4th-generation languages
High-level languages
Assembly languages
Machine languages
Interpreters:
Immediate response,
but
execute code slowly
Page 4 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
Compilers:
Compiling takes time,
but
super-fast execution
Page 5 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
Concept &
Feasibility Test
User Requirements
Planning
Test
Design Test
Test
Implementatio
n
Integration
Testing
Acceptance
Opr. &
Test
Maintenance
Retirement
Algorithm
1st Definition:
Sequence of steps that is taken to solve a problem
Better Definition:
A precise sequence of a limited number of unambiguous, executable
steps that terminates in the form of a solution
Pseudo Code
•Quite suitable for SW development as it is closer in form to real code
•One can write the pseudo code, then use it as a starting point or outline for writing real
code
•Many developers write the pseudo code first and then incrementally convert each line
into real code
Heuristic
Page 6 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
Page 7 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
–Read -- Modify
–Rename -- Delete
–Create
•Create graphics (although, it does have the ability to format pages through HTML -
including the placement of graphics)
•Any network programming bar one function: the ability to download a file to the browser
specified through an arbitrary URL
prop 1
method 2
prop 2
prop
prop 5
method 3
1
method
prop 4 3
Object: A named collection of properties (data, state) & methods (instructions, behavior)
Functions
•A named group of statements that is put together once and then used (by reference)
repeatedly on a Web page
•Code becomes easier to read, understand and maintain
Local and Global Variables
Local or Function-level Variable
Page 8 of 9
© Copyright Virtual University of Pakistan
Virtual University Introduction to Computing
Page 9 of 9
© Copyright Virtual University of Pakistan