chapter 13 problem solving procedures n.
Download
Skip this Video
Download Presentation
Chapter 13 Problem solving procedures

Loading in 2 Seconds...

play fullscreen
1 / 14

Chapter 13 Problem solving procedures - PowerPoint PPT Presentation


  • 132 Views
  • Uploaded on

Chapter 13 Problem solving procedures. Step1- problem identification. define the problem Interview discussion Think and make some question What are the causes of the problem?? Which program do you need to solve the problem??. Step2- problem analysis.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 13 Problem solving procedures' - cameron-thomas


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
step1 problem identification
Step1- problem identification
  • define the problem
  • Interview
  • discussion
  • Think and make some question

What are the causes of the problem??

Which program do you need to solve the problem??

step2 problem analysis
Step2- problem analysis
  • Input-process-output chart (IPO chart)
  • Complete understanding the problem
  • Find the information to solve
  • Example:

Make a website

step3 algorithm design
Step3- algorithm design

Flow of solution

Find and considering the possible ways to solve

Flowchart

  • Use graph
  • Show the steps or process as boxes
  • Order by connecting with arrows
  • represent a solution algorithm.
pseudocode
pseudocode
  • Use short English-like phrase to explain the task or process
  • No specific computer languages is used

Advantage:

  • Save time to write
  • Easy to understand and organize your thoughts
step4 developing a solution
Step4- developing a solution
  • Select the best ways
  • Structure diagram
  • Divide the problem into sub-problem

- divide and conquer

slide7

Advantage of breaking down the problem into sub-problem :

easy to find the mistakes in the process

easy to solve the problem

know the process clearly

systematically to handle

step5 debugging and testing
Step5- Debugging and testing
  • Sure the program work and avoid some mistakes
  • syntax error
  • Logic error
  • Run-time error
syntax error
Syntax error
  • mistyping wrong programming language command
  • Program cannot be translated
  • Easy to find out mistakes
  • Example:

<img sc=“http://www.istockphoto.com/file_closeup.php?id=161739"”>

Cannot show the pictures

logic error
Logic error
  • Program gives a wrong result
  • can function normally
  • Difficult to find the mistakes
  • cannot be defeated by program
  • only be detected by human
  • Example:

If age < 17 then (should be age>17)print "I am a adult“End If

run time error
Run-time error
  • during the running of a program
  • The problem will stop

Example:

  • running out of memory
  • Division by zero
step6 documentation
Step6- documentation

Two documents to write

  • Users manual
  • Program manual
users manual
Users manual

Target : users

Purpose :

  • tell users how to use the program
  • Teach users how to handle errors
program manual
Program manual
  • Target : programmer
  • Purpose :
  • - programmers maintain the program in the future
  • Items included : flowcharts, testing report
ad