Skip to main content

Algorithm and Flowchart Introduction & Method of Problem Solving

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




Method of Problem Solving

  1. Recognize and understand the problem.
  2. Accumulate facts.
  3. Select appropriate theory.
  4. Make necessary assumptions.
  5. Solve the problem.
  6. Verify results.
Preforming step 5 (Solve the problem) may involve a computer.




Five steps in using a computer as a problem-solving tool

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



Definition of Algorithm and Flowchart

  • 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.




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

    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

    Popular posts from this blog

    Free Download Microsoft Macro Assembler (MASM 6.11)

    Author :   Microsoft Email   :    None Website:    http://www.microsoft.com/ Released:    Sep 28 1993 Platform:    DOS Windows Source:      No Binaries:      Yes Summary       MASM 6.11 was the last stand-alone version of MASM available from Microsoft. Newer versions can be found "hidden" within other Microsoft products if you look hard enough. The download below includes the original install disks for MASM 6.11, along with patches to upgrade to 6.11d (last version that runs on DOS/Win16) and 6.14 (includes support for the Intel Pentium Pro processor, the Intel MMX architecture, AMD 3D Technology, and Intel Internet Streaming SIMD Extensions). Also included are the user's manuals in both Word and PDF format. Note: MASM is no longer sold by Microsoft, and the MASM executable and linker can be found in other tools available for free directly from Micros...

    "Law of Attraction" By "Michael losier"

    Law of Attraction Book - Short Description The Science of Attracting More of What You Want and Less of What You Don't. You are already experiencing the Law of Attraction, now learn how to use it deliberately. This simple, easy-to-use book is full of tips, tools, exercises and scripts to help you use the Law of Attraction deliberately.   Law of Attraction Book - Contents What Others Are Saying About This Book A Brief History of the Law of Attraction You're Already Experiencing the Law of Attraction The Science of the Law of Attraction Making Reference to the Law of Attraction Positive and Negative Vibrations Non-deliberate Attraction Understanding the Significance of Your Words Deliberate Attraction The 3-Step Formula for Deliberate Attraction Step 1 - Identify Your Desire Step 2 - Give Your Desire Attention Step 3 - Allow It More Tools to Help You Allow Putting it All Together Beyond the 3-Step Formula Become More Abundant and Attract More Money Relationship...

    Technology Is Changing

    Technology Is Changing!