Académique Documents
Professionnel Documents
Culture Documents
Learning Outcomes
Explain the concepts of problem-solving and structured
programming.
Contents
Recognize 6 steps in problem solving1.
Types of problem1.
Difficulties with problem solving 1
Recognize 7 steps in program development process2.
Pseudocode and developing an Algorithm2
References:
Problem Solving and Programming Concepts (9th Edition) . Maureen Sprankle, Jim Hubbard, Pearson Education Limited 2012.
Simple Program Design. A step by step approach (5th Edition). Lesley Anne Robertson. Cengage Learning 2006.
References:
Problem Solving and Programming Concepts (9th Edition) . Maureen Sprankle, Jim Hubbard, Pearson Education Limited 2012.
Simple Program Design. A step by step approach (5th Edition). Lesley Anne Robertson. Cengage Learning 2006.
What to do?
Identify alternatives
1/14/2015
Types of problem
Algorithmic solutions
Can be solved with a series of actions (the algorithm)
Log on to an e-mail account
Withdraw cash from ATM machine
1/14/2015
1.
1/14/2015
Algorithms
A program must be systematically and properly
designed before coding begins
1/14/2015
What Is an Algorithm?
An algorithm is like a recipe: it lists the steps involved
in accomplishing a task
It can be defined in programming terms as a set of
detailed, unambiguous and ordered instructions
developed to describe the process necessary to
produce the desired output from a given input
Summary
The steps in program development were introduced
and briefly described below:
1. Define the problem
2. Outline the solution
3. Develop the outline into an algorithm
4. Test the algorithm for correctness
5. Code the algorithm into a specific programming
language
6. Run the program on the computer
7. Document and maintain the program