0% found this document useful (0 votes)
13 views11 pages

Chapter 1.6 Problem Solving

Uploaded by

hazlindaidris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views11 pages

Chapter 1.6 Problem Solving

Uploaded by

hazlindaidris
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

C

Problem Solving
Techniques
Chapter 1

PROGRAMMING
DEC20012 FUNDAMENTALS
OBJECTIVES
C
At the end of lesson, students should be
able :
Chapter 2 • List the stages involved in problem
solving
• List & explain the elements (Input,
Process, Output) of problem analysis.
• Determine the Input, Process & Output
for a given problem.
• List, explain & apply the various design
tools:
• Pseudocode
• Flowchart
ZEDZ@PSIS
• IPO Chart
www.company.com
OBJECTIVES
C
cont:

Chapter 2 • Use the design tools to solve a given


problem.
• Identify & explain the various types of
errors
• Syntax Error
• Run-Time Error
• Logical Error

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING PHASE ?
C
Process of system development

Chapter 2
System
Analysis Design
Requirement

Maintenance System Test Code

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING PHASE ?
C

Understand the
Chapter 2 problem: System
Requiremen Analysis Design
- Input t
-Output
- Process

Maintenanc System
Code
e Test

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING PHASE ?
C

Chapter 2 Develop the solution


System
(algorithm):
Requiremen Analysis Design
- Pseudocode
t
- Flowchart
- IPO Chart

Maintenanc System
Code
e Test
IPS!
T
Algorithm – steps to solve problem by using a computer.

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING PHASE ?
C

Chapter 2 System
Converting design to
Requiremen Analysis Design
computer codes.
t
e.g. Flowchart 🡪 C
program

Maintenanc System
e Test Code

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING BY IPO TABLE
C
• How to create an IPO table:
• Establish input & output components
Chapter 2 • Establish the actions required

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING BY IPO TABLE
C
• Step by step:
• Underline all the input values that
Chapter 2 must be entered by the user.
• Underline the output values that
should be generated by the program.
• Underline all the verbs.
• Write the input variable names in
the input column.
• Write the output variable names in
the output column.
• Write the processing steps in the
process column.
ZEDZ@PSIS
www.company.com
PROBLEM SOLVING BY IPO TABLE
C
• Example 1:

Chapter 2 A program is required to get three


numbers, add them together and display
the total on the screen.

ZEDZ@PSIS
www.company.com
PROBLEM SOLVING BY IPO TABLE
C
• Example 2:

Chapter 2 A program is required to get the


maximum & minimum temperature
readings from the user. Then calculate &
display the average temperature.

ZEDZ@PSIS
www.company.com

You might also like