{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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
Describing Algorithms
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern