1 Computational Problem Solving
1 Computational Problem Solving
1 Computational Problem Solving
Solving
CS001L -
3rd Term 2020 -2021
Topics:
• Process of Computational Problem Solving
• Problem Analysis, Design, Implementation, and
Testing
• Algorithms
• Pseudocodes and Flowcharting
Learning Objectives
• Identify the terminologies in algorithm,
pseudocode, and flowcharts. (CO1)
• Use appropriate flowcharting symbols in solving
specific problem. (CO1)
1-3 Kendall & Kendall Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall
TERMINOLOGIES
• Algorithm
• the step-by-step sequence of instructions that
describe how the data is to be processed to
produce the desired output
• Logic
• Art of reasoning
TERMINOLOGIES
• Syntax
• Rules governing usage of words and punctuation
• Semantics
• Rules governing the logic or idea of languages
• Machine Language
• The computer’s native language represented as
a series of 0’s and 1’s (binary form)
TERMINOLOGIES
• Compiler or Interpreter
• Translation software that converts programmer’s
statements to binary form notifies the programmer
if the programming language is used incorrectly
• Compiler
• Entire program is translated before it can execute
• Interpreter
• Each instruction is translated just prior to execution
5 Steps in Problem Solving Process
01 02 03 04 05
Understand Plan Code Test Production
Understanding the Plan the Logic Coding the Program Testing the Program Putting Program into
Problem Production
5 Steps in Problem Solving Process
1 exit
1 entry, 2 exits
1 entry, 1 exit 1 entry, 1exit
Summary
• Programming as Problem Solving
• Programming Process
• Understanding the problem
• Planning the logic
• Coding the program
• Testing the program
• Putting the program into production
• Problem Solving Strategies
• Stepwise Refinement
Summary
• Object Oriented Design Methodology
• Brainstorming
• Filtering
• Scenarios
• Responsibility algorithms
• PSEUDOCODE STATEMENTS
• FLOWCHART Symbols
END