Remember a computer is only a problem-solving tool! (one of the many different tools engineers use in solving problems)

Method of Problem Solving

Five steps in using a computer as a problem-solving tool
Definition of Algorithm and Flowchart

Basic Symbols
Of the many Symbols available, these 6 Basic Symbols will be used most:
it shows Start/Stop
it shows Question,Decision (Use in Branching)
it shows Input/Output
it shows Connector (connect one part of the flowchart to another)
it shows Process, Instruction
it shows Comments, Explanations, Definitions.

2 Additional Symbols
Related to more advanced programming
Preparation (may be used with "do loops" explained later)
Refers to separate flowchart ("Subprograms"(explained later) are shown in separate flowcharts).

Flowchart examples

Given the radius and height for a cylinder find the volume and surface area.







- Recognize and understand the problem.
- Accumulate facts.
- Select appropriate theory.
- Make necessary assumptions.
- Solve the problem.
- Verify results.

- Develop an Algorithm and a Flowchart.
- Write the program in a computer language. (i.e. C, FORTRAN)
- Enter program into the computer.
- Test and debug the program.
- Run the program, input data, and get the results from the computer.

- An Algorithm is just a detailed sequence of simple steps that are needed to solve a problem.
- A Flowchart is a graphical representation of an algorithm.











1. Sequential structure

Given the radius and height for a cylinder find the volume and surface area.

2. Selection/Branching Structure


3. Repetition/Looping Structure


4. Combination of Structures

Comments
Post a Comment