{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

19 ProblemSolving - Problem Solving On A Computer...

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

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

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

View Full Document Right 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.
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.
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right Arrow Icon
Describing Algorithms
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern