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

    Technology Is Changing

    Technology Is Changing!

    10 Best Operating Systems For Laptops And Computers In 2021

    10 Best Operating Systems For Laptops And Computers In 2021 Today’s modern age is blessed with the miracle of technology. One of these miracles that have made our lives simpler, faster and more entertaining is the computers. Computers are a revolutionary invention that really changed the course of human civilization. It has evolved from bulky desktop boxes to more portable and convenient laptops and mobile phones. However, the fact which many seldom talk about is what makes these computers work the way they do. We are of course talking about the operating system aka OS. Without an operating system, a computer cannot simply function. What Is The Difference Between Server OS And Everyday OS? Understanding how to differentiate a server OS from an everyday one is vital to our discussion. The differences are very specific. An everyday OS will be able to run programs like MS Word, PowerPoint, Excel, etc. including running one of your favorite video games. It enables applications that make br...