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

    Technology Is Changing

    Technology Is Changing!

    Details of Alkaram Dealers in Pakistan

    Al-Karam dealers in Abbotabad Bombay Cloth House: Main Bazar 099-2330769 Libaas-e-Khaas Cloth House: Jadoon Plaza, Mandiyaan 0300-9353320 Rabi Collection: Supply Bazar, Mandiyaan 099-2342422 Stylo Fabrics: Najam Plaza, Mandiyaan 0302-8107945 Al-Karam dealers in Ali Pur Aamir Cloth: Bano Bazar 0333-7679585 Al-Karam dealers in Badin Shafi Khati Cloth: 0333-2523244 Noman Cloth Store: 0346-3755590 Al-Karam dealers in Bhawalpur Karam Cloth Centre: Bhawalpur Trade Centre 062-2880212 Wahab Fabrics: AB Centre, Galla Mandi Road, Modern Town B 0300-9682564 Pasha Fabrics: Satellite Town, Commercial Area, 45-C 0300-9683429  Al-Karam dealers in Burewala Saab Jee Fabrics: Rail Bazar 067-3773355 Al-Karam dealers in Chicha Watni Arab cloth House: Main Bazar 040-5486325 Bhular Cloth House: Main Bazar Al-Karam dealers in Chistiyaan Fancy Cloth House: Main Bazar Al-Karam dealers in Dadu Raja Asad Cloth Store: 0254-612102 Al-Karam dealers in Deepalpur Mu...

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