0% found this document useful (0 votes)
37 views

1.1 Tutorial Note Approach in Problem Solving

The document outlines the five steps in the problem solving process for computer programming: 1) Problem Analysis which involves clearly stating the problem and identifying inputs, processes, and outputs, 2) Design a Solution by creating an algorithm and verifying it solves the problem, 3) Implementation which is writing the code, 4) Testing by running the program and entering sample data, and 5) Documentation of all materials related to how the program was designed and written.

Uploaded by

2022461692
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

1.1 Tutorial Note Approach in Problem Solving

The document outlines the five steps in the problem solving process for computer programming: 1) Problem Analysis which involves clearly stating the problem and identifying inputs, processes, and outputs, 2) Design a Solution by creating an algorithm and verifying it solves the problem, 3) Implementation which is writing the code, 4) Testing by running the program and entering sample data, and 5) Documentation of all materials related to how the program was designed and written.

Uploaded by

2022461692
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

TOPIC 1:

APPROACH IN PROBLEM SOLVING


[ 1.1 Steps in Problem Solving ]

Computer Science 2 - SC025 [2021/2022] 1


CLO3
Learning Outcome:
At the end of this subtopic, students should be
able to:

✔ Identify steps in problem solving (problem


analysis, design a solution, implementation,
testing and documentation).

Computer Science 2 - SC025 [2021/2022] 2


[ Introduction ]

This subtopic introduces


you to the process
that programmers
follow when solving
problems that require
a computer solution.

Computer Science 2 - SC025 [2021/2022] 3


[ Introduction ]
Computers are NOT intelligent.

● Computers do what we tell them to do.


They don't do anything by
themselves.
● We must clearly tell a computer what to do in a
step by step manner using a programming language.
● Computers are just electronic devices that have the
power to perform difficult tasks but they do not
'KNOW' what to do.
● Programmers tell the computers what to do by
writing programs.
Computer Science 2 - SC025 [2021/2022] 4
[ Steps in Problem Solving ]

Five (5) steps in problem solving:

Computer Science 2 - SC025 [2021/2022] 5


[ Steps in Problem Solving ]
(1) Problem Analysis

• State the problem clearly.


• Identify input, process and output
based on the problem.
(2) Design a Solution

• Prepare an algorithm (pseudocode &


flowchart) for its solution.
• Write step-by-step procedure
and then verify that the algorithm
solves the problem as intended.
Computer Science 2 - SC025 [2021/2022] 6
[ Steps in Problem Solving ]

(3) Implementation

• Coding / Programming is the


process of translating the algorithm
into the
syntax of a given programming language.
(4) Testing

• Testing means running the program,


executing all its instructions / functions,
and testing the logic by entering sample
data to check the output.
Computer Science 2 - SC025 [2021/2022] 7
[ Steps in Problem Solving ]

(5) Documentation

• All of the flowcharts, messages,


algorithms, lines of code, and the user
manuals are part of this documentation.

• Internal documentation is used by


other programmers to help them know
why you did something a certain way
or tell them how you wrote a program.

Computer Science 2 - SC025 [2021/2022] 8


[ Steps in Problem Solving ]

(5) Documentation

• External documentation includes


user manuals and anything that is
not the actual code or is art of the
listing.

• This should also include materials that


are placed on a website such as FAQs
(frequently asked questions).

Computer Science 2 - SC025 [2021/2022] 9


Summary

Five (5) steps in problem solving

- Problem Analysis
- Design a Solution
- Implementation
- Testing
- Documentation

Computer Science 2 - SC025 [2021/2022] 10

You might also like