7.Computer Program
7.Computer Program
COMPUTER PROGRAM
Introduction
• Computer can perform a variety of tasks like receiving data, processing it and producing
useful results.
• Computer need to be instructed to perform even a simple task like addition of two
numbers
A,B C = A+B C
Algorithm
Implement
Developm
ation
ent
Document Algorithm
ation Testing
Testing
and Coding
Debugging
Program Development Cycle
• Problem Analysis:
◦ Problem is analyzed precisely and completely
◦ Developer knows about the scope within the problem needs to developed
• Task Analysis:
◦ Developer needs to develop various solutions to solve the given problem
◦ From numerous solutions, optimum solution is chosen
Program Development Cycle
• Algorithm Development:
◦ An algorithm (ex. flowchart) is developed to depict the basic logic of the selected solution
◦ Algorithm depicts the solution in logical steps
• Algorithm Testing:
◦ Before converting the algorithm into actual code, it should be checked for accuracy
◦ Test data need to be ‘walk through’ each step in the algorithm
◦ That verify that the instructions described in the algorithm actually perform the required
functions or not
◦ Identify major logical errors, if any
◦ Ensure that algorithm work for both normal and unusual data
Program Development Cycle
• Coding:
◦ Program takes place in the chosen programing language