

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introduction to algorithms, flowcharts, and pseudocode for engineering students in the engr 1731 computing for engineers course during spring 2009. The importance of algorithms, their representation as flowcharts and pseudocode, and their independence from programming languages. Examples of pseudocode and flowchart planning for various engineering problems are also provided.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Mechanical and Electrical Engineering Technology Spring 2009
Prof. Alba‐Flores
Flowcharts and Pseudocode
An Algorithm is a well-defined procedure to solve a problem.
An algorithm is a very useful tool that a programmer uses to express the method that will be used to solve a problem
Algorithms
solve a problem.
Once that an algorithm is well defined, the programmer can translate it directly to a specific computer language.
Algorithms can be represented as flowcharts or/and pseudocodes
Flowcharts and pseudocodes are also other useful tools that are used to plan how a problem can be solve using a programming language.
Flowcharts and poseudocodes are independent of the i l
Flowcharts and Pseudocode
programming language.
If you have a good flowchart (or pseudocode) for a given problem, it will be straightforward to implement that flowchart ( or pseudocode) into a program in any computing language.
Flowcharts and Pseudocode (cont.)
For simple programs, pseudocode may be the best planning approach.
Example 1. Suppose we want to create a program to convert mph to ft/s. The output should be a complete table with a title and column headings.
A pseudocode for this example could be:A pseudocode for this example could be:
An equivalent flowchart planning could be:
Flowchart are pictoral representation of a computer program.
Flowcharts and poseudocodes are tools intended to help programmers to create better computer programs.
Flowcharts can also be use effectively to illustrate the structure of a program to nonprogrammers, since flowcharts emphasize the logical progression of ideas.
For complicated programming tasks, the combination of flowcharts and pseudocodes are highly recommended.
Flow charts are very useful because they help to t ”bi i t ” f
create a ”big picture” of your program.
To create flowcharts it is recommended that you use the standard flowcharting symbols.
Standard Flowcharting Symbols Example 2. Create a flowchart that will show how the following problem can be solved using a computer language.
A flowchart that illustrate the process could be:
Example 3. Create a flowchart that will show how the following problem can be solved using a computer language. -You are assigned to write a program that will determine test grades based on the scores. The grades should be based on the following criteria: Grade Score A 90 to 100
A flowchart that illustrate the process could be:
A 90 to 100 B 80 to 90 C 70 to 80 D 60 to 70 F < 60