Notes By: Shailesh Bdr. Pandey, TA, Computer Engineering Department, Nepal Engineering College

Similar documents
Unit II. (i) Computer Programming Languages

FLOWCHARTS A flowchart is a graphical representation of the steps to be followed for solving problem. It consists of a set of symbols.

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

PROBLEM SOLVING AND OFFICE AUTOMATION. A Program consists of a series of instruction that a computer processes to perform the required operation.

ITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University

depicts pictorially schematic representation of an algorithm document algorithms. used in designing or documenting

1. The narratives, diagrams, charts, and other written materials that explain how a system works are collectively called

PROBLEM SOLVING AND PYTHON PROGRAMMING

FLOW CHART AND PSEUDO CODE

Visual Basic Course Pack

Systems Development and Documentation Techniques. Lecture 2. (Chapter 3)

Chapter 1 INTRODUCTION TO COMPUTER AND PROGRAMMING

Transaction Processing Systems

This lesson was made possible with the assistance of the following organisations:

SNS COLLEGE OF ENGINEERING,

Lesson 1. Introduction to Programming OBJECTIVES

File Organization. Serial: Records are accessed in the order in which they were stored.

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound).

Logical File Organisation A file is logically organised as follows:

UNIT-3 PROBLEM SOLVING AND OFFICE AUTOMATION

FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING UNIT III. 2 Marks PROBLEM SOLVING AND OFFICE AUTOMATION

Chapter 1: An Overview of Computers and Logic

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

Chapter 08. Consideration of Internal Control in an Information Technology Environment. McGraw-Hill/Irwin

ICT REVISION WORKSHEET YEAR 9

Algorithms and Flowcharts

MorphEdit for Windows. Copyright 1994,1995,1996 PJA White

Lab 2: Structured Program Development in C

Q1. Briefly describe the characteristic features of input and output devices of a computer system.

Fundamentals of Health Workflow Process Analysis and Redesign

IT Auditing, Hall, 3e

Chapter Two: Program Design Process and Logic

INTRODUCTION TO COMPUTERS

Lecturer 4: File Handling

ENT 189: COMPUTER PROGRAMMING. H/P: Home page:

Memory Study Material

Section 5 MUST BE COMPLETED BY: 12/5

GRADE VIII MODEL PAPER 2017 COMPUTER EDUCATION

Chapter 4 Introduction to Control Statements

Q1. Describe C.P.U and its subunits with the help of diagram?

EKT 120/4 Computer Programming KOLEJ UNIVERSITI KEJURUTERAAN UTARA MALAYSIA

Components of a personal computer

lesson 3 Transforming Data into Information

SME1013 PROGRAMMING FOR ENGINEERS

Chapter Three. Hardware Basics: Peripherals

Machine Architecture and Number Systems

CC411: Introduction To Microprocessors

Unit 1: Introduction to Algorithms

Introduction to Transaction Processing

Full file at

MANAGING ELECTRONIC RECORDS

INFS 214: Introduction to Computing

Fundamentals of Python: First Programs. Chapter 4: Text Files

PESIT Bangalore South Campus

On Fig. 7.1, draw a ray diagram to show the formation of this image.

Chapter 2 SYSTEMS TECHNIQUES AND DOCUMENTATION

The Office Procedures and Technology

Making Tables and Figures

Auxiliary Storage and File Organisation

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

Communicating with is essentially a two-way process that involves exchange of information. 1. It is a high-speed data processing device or system.

AHA-1540C/1542C Installation Guide

MEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

User s Manual CAP 531*1.5 Configuration and Programming tool

MICROSOFT WORD. Table of Contents. What is MSWord? Features LINC TWO

Flow Chart. The diagrammatic representation shows a solution to a given problem.

Dec Hex Bin ORG ; ZERO. Introduction To Computing

UNIT 15 GRAPHICAL PRESENTATION OF DATA-I

Introduction to Windows XP

Question Bank. Fundamentals Of Computer FYBCA (SEM - I)

File System Interface and Implementation

SYSTEMS AND METHODS FOR ROUTING COMMUNICATIONS IN A COMPUTER NETWORK

SSRVM Content Creation Template

There are algorithms, however, that need to execute statements in some other kind of ordering depending on certain conditions.

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Introduction To Computer Hardware. Hafijur Rahman

Digital System Design Using Verilog. - Processing Unit Design

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Chapter 2 Number Systems and Codes Dr. Xu

5. a computer which CPU speed around 100 million instruction per second and with the word length of around 64 bits is known as


1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

UNIT 1-2 MARKS QUESTIONS WITH ANSWERS

Lesson 13: Angle Sum of a Triangle

Installation Guide AHA-1540CF/1542CF. High-Performance Bus Master ISA-to-SCSI Host Adapter with SCSISelect

Fault Tolerance & Reliability CDA Chapter 2 Additional Interesting Codes

Section Question Candidates Score A 1-15

COMPUTER HARDWARE & NETWORK TROUBLESHOOTING

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS

Computer Science (330)

Easy Windows Working with Disks, Folders, - and Files

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

CS Introduction to Artificial Intelligence

Chapter 1 Basic Computer Organization

Chapter 7 : Input-Output Organization

4.2 Example of [Z Bus ] matrix building algorithm

Vision Pointer Tools

CHARUTAR VIDYA MANDAL S SEMCOM Vallabh Vidyanagar

Transcription:

FLOWCHARTING The flowchart is a means of visually presenting the flow of data through an information processing systems, the operations performed within the system and the sequence in which they are performed. In this lesson, we shall concern ourselves with the program flowchart, which describes what operations (and in what sequence) are required to solve a given problem. The program flowchart can be likened to the blueprint of a building. As we know a designer draws a blueprint before starting construction on a building. Similarly, a programmer prefers to draw a flowchart prior to writing a computer program. As in the case of the drawing of a blueprint, the flowchart is drawn according to defined rules and using standard flowchart symbols prescribed by the American National Standard Institute (ANSI), Inc. MEANING OF A FLOWCHART A flowchart is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. Flowcharts are generally drawn in the early stages of formulating computer solutions. Flowcharts facilitate communication between programmers and business people. These flowcharts play a vital role in the programming of a problem and are quite helpful in understanding the logic of complicated and lengthy problems. Once the flowchart is drawn, it becomes easy to write the program in any high level language. Often we see how flowcharts are helpful in explaining the program to others. Hence, it is correct to say that a flowchart is a must for the better documentation of a complex program. GUIDELINES FOR DRAWING A FLOWCHART Flowcharts are usually drawn using some standard symbols; however, some special symbols can also be developed when required. Some standard symbols, which are frequently, required for flowcharting many computer programs are shown in Fig. 1 INPUT/OUTPUT SYMBOLS Document symbol represents a document or report that is prepared by hand or printed by a computer. Multiple Copies of One Document--The document copies should be numbered in the upper, right-hand corner. Input/Output; Journal/Ledger symbol can represent any input or output on a program flowchart. Also represents accounting journals or ledgers in a document flowchart. Display symbol represents information displayed by an online output device such as a terminal, monitor, or screen. Online Keying symbol represents data entry by an online device such as a terminal or personal computer.

Terminal or Personal Computer symbol combines the display and online keying symbols to represent terminals and personal computers. Transmittal Tape symbol represents manually prepared control totals which are to be compared to computer totals for control purposes. PROCESSING SYMBOLS Computer Processing symbol represents a process performed by a computer, which usually results in a change in data or information. Manual Operation symbol represents a processing operation that is performed manually. Auxiliary Operation represents a processing operation carried out by a device other than a computer, e.g., an optical character scanner. Off-line Keying Operation symbol represents an operation that uses an off-line keying device, such as a cash register or keying to a disk. STORAGE SYMBOLS Magnetic disk symbol represents data stored permanently on a magnetic disk. Frequently used to represent master files and databases. Magnetic Tape symbol represents data stored on a magnetic tape. Sometimes represents transaction files. Diskette symbol represents data stored on a floppy disk or zip disk. Online Storage symbol represents data stored in a temporary online file on a direct-access medium such as a magnetic disk. File symbol represents a file of documents that are manually stored and retrieved. Letter indicates the ordering sequence: A = alphabetic order; D = date order; N = numeric order.

FLOW AND MISCELLANEOUS SYMBOLS Document or Processing Flow symbol represents the direction of processing or document flow. Normal flow is top to bottom and left to right. Data/Information Flow symbol represents the direction of data/information flow. Often used to show data being copied from one document to another. Communication Link symbol represents the transmission of data from one location to another via communication lines. On-page connector symbol connects processing from one location to another on the same page. Used to avoid crisscrossing lines. Off-page connector symbol connects the processing flow between two different pages. Signals the exit from one page and the corresponding entrance on another page. Terminal symbol represents the beginning, end, or a point of interruption in a process or program. Also used to indicate an external party. Decision symbol represents a decisionmaking step. Used in a program flowchart to show branching to alternate paths. Annotation symbol provides for the addition of descriptive comments or explanatory notes as clarification. Fig. 1 Flowchart Symbols The following are some guidelines in flowcharting: a. In drawing a proper flowchart, all necessary requirements should be listed out in logical order. b. The flowchart should be clear, neat and easy to follow. There should not be any room for ambiguity in understanding the flowchart. c. The usual direction of the flow of a procedure or system is from left to right or top to bottom. d. Only one flow line should come out from a process symbol.

or e. Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol. f. Only one flow line is used in conjunction with terminal symbol. g. Write within standard symbols briefly. As necessary, you can use the annotation symbol to describe data or computational steps more clearly. h. If the flowchart becomes complex, it is better to use connector symbols to reduce the number of flow lines. Avoid the intersection of flow lines if you want to make it more effective and better way of communication. i. Ensure that the flowchart has a logical start and finish. j. It is useful to test the validity of the flowchart by passing through it with a simple test data. ADVANTAGES OF USING FLOWCHARTS The benefits of flowcharts are as follows: 1. Communication: Flowcharts are better way of communicating the logic of a system to all concerned. 2. Effective analysis: With the help of flowchart, problem can be analysed in more effective way. 3. Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes. 4. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase. 5. Proper Debugging: The flowchart helps in debugging process. 6. Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part

LIMITATIONS OF USING FLOWCHARTS 1. Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy. 2. Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely. 3. Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem. 4. The essentials of what is done can easily be lost in the technical details of how it is done. FEW EXAMPLES ON FLOWCHARTING Now we shall present few examples on flowcharting for proper understanding of this technique. This will help in student in program development process at a later stage. Example 1 Draw a flowchart to find the sum of first 50 natural numbers. Answer: The required flowchart is given in Fig. 2. Fig. 2 Sum of first 50 natural numbers Fig 2.2 Flowchart for computing the sum of first 50 natural numbers. Example 2 Draw a flowchart to find the largest of three numbers A,B, and C. Answer: The required flowchart is shown in Fig 3

Fig 3 Flowchart for finding out the largest of three numbers Example 3 Draw a flowchart for computing factorial N (N!) Where N! = 1 2 3 N. The required flowchart has been shown in fig 4 Fig 4 Flowchart for computing factorial N