19 ProblemSolving

# 19 ProblemSolving - Problem Solving On A Computer...

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

Problem Solving On A Computer

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

View Full Document
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.
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.

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

View Full Document
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
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

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

View Full Document
For complex problems step-by-step English
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
Ask a homework question - tutors are online