Program Development Cycle
Program Development Cycle
COMPUTER PROGRAMMING
FOR TECHNOLOGY
Practical group Wed 3.00-5.00 --------------- BST and ENT ICT Lab
2 60
Any Question ?
Contact : Nishadi Prasangini - nprasang@tec.rjt.ac.lk
INTRODUCTION
What is a Software?
What is a Program?
SOFTWARE
• A set of instructions that enables physical components of a
computer to work in a synchronize way is known as software .
• This set of instructions is often called a program.
• Computers cannot do any useful work without instructions from
software
COMPUTER SOFTWARE RELATIONSHIPS
Computer Hardware
WHAT IS A (PROGRAMMING)
LANGUAGE?
A sequence of instructions
An algorthm A program
(in human language) (in computer language)
• High-level language
• Readable
• Machine-independent
AN EXAMPLE:
Machine binary language Low-level assembly High-level
HOW TO TRANSLATE?
A program written in high-level programming language
(for example, C++ program)
EXAMPLES OF COMPILERS:
• MICROSOFT VISUAL C++, ECLIPSE, G++
TRANSLATION SYSTEM
E xecute
INTEGRATED
DEVELOPMENT ENVIRONMENTS
• Combine all of the capabilities that a programmer would want
while developing software (VC++ 2008, eclipse)
Editor
Compiler
Linker
Loader
Debugger
Viewer
OUR FIRST PROGRAM
// a simple program
#include <iostream> Comments
using namespace std;
int main() {
Function cout << "Hello world!" << endl;
named return 0;
main() }
indicates
start of
program