Professional Documents
Culture Documents
CM304
CM304
ANDHRA PRADESH
Duration : 50 Min
SubTopic : Steps in Problem Solving
Teaching Aids : PPT, Animations, Photographs
CM304.26 1
Objective
CM304.26 2
What is a Computer program?
Programming
The process of writing a program.
Before programming
The problem to be solved needs preparation.
CM304.26 3
What is a computer ?
CM304.26 4
Contd..
Problem analysis
The process of achieving the required level of
satisfactory details of the problem.
CM304.26 5
The steps involved in problem solving.
Problem specification
Outlining the solution
Representing an algorithm and flowchart
Transforming algorithm into a program
Removing errors
CM304.26 6
Problem Specification
CM304.26 7
Outlining the solution
CM304.26 8
Removing Errors
Errors occur due to mistakes done in coding.
Errors cause wrong results.
Errors must be detected and corrected.
Program verification.
Checking whether the program is correct or not.
Debugging:
Process of detecting and removing the errors.
Note:bug means an error in a program.
CM304.26 9
Types of possible errors in a program
Syntax errors
Run-time errors
Logical errors
CM304.26 10
Syntax errors
CM304.26 11
Examples for syntax errors
CM304.26 12
Run-time Errors
CM304.26 13
Logical Errors
CM304.26 15
Summary
CM304.26 16
Quiz
a) Write algorithm
b) Draw flowchart
c) Analyze the problem
d) None of them
CM304.26 17
Quiz
– Write algorithm
– Draw flowchart
– Analyze the problem
– None of them
CM304.26 18
Quiz
a) Input
b) Processing
c) Output
d) All the above
CM304.26 19
Quiz
• Input
• Processing
• Output
• All the above
CM304.26 20
Frequently Asked Questions
CM304.26 21