19 ProblemSolving

19 ProblemSolving - Problem Solving On A Computer...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem Solving On A Computer
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Fundamental Control Structures All programs can be built-up from three fundamental control structures Sequence Structure One operation, or a group of operations is performed one after the other, that is, sequentially.
Background image of page 2
Fundamental Control Structures Selection or Decision Structure Tests a condition to determine which steps are to be performed next Different operations are selected depending on whether the test is true or false. Repetition or Loop Structure A series of steps is repeated. In a conditional loop the steps are repeated as long as a certain condition is true. In a counting loop the steps are repeated for a predetermined number of times.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Algorithms Series of step-by-step instructions for the solution of the problem. The design of a good algorithm is an important factor in program development Once an algorithm has been designed, the writing of the program in a programming language (coding) is a relatively simple and straightforward task
Background image of page 4
Attributes of Algorithms Each step in the algorithm must be unambiguous, explicit, and precise The order in which the instructions are performed must be precisely defined It must lead to a solution in a finite number of steps. That is, algorithms must eventually terminate
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
For complex problems step-by-step English
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/14/2008 for the course CEE 3804 taught by Professor Aatrani during the Fall '07 term at Virginia Tech.

Page1 / 19

19 ProblemSolving - Problem Solving On A Computer...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online