Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.

Slides:



Advertisements
Similar presentations
ALGORITHMS AND FLOWCHARTS
Advertisements

College of Information Technology & Design
Representing an algorithm using Flowcharts
PROBLEM SOLVING TECHNIQUES
PSEUDOCODE & FLOW CHART
ALGORITHMS & FLOWCHARTING II
CS1010 Programming Methodology
D IVIDE AND CONQUER STRATEGY, D ATA TYPE, A LGORITHM DESIGN AND PRACTICE. Week 13 Mr.Mohammed Rahmath.
D EVELOPING P ROGRAMS USING ALGORITHMS AND FLOW CHARTS AND VICE VERSA Week 14 Mr.Mohammed Rahmath.
Programming Fundamentals (750113) Ch1. Problem Solving
Review Algorithm Analysis Problem Solving Space Complexity
ALGORITHMS AND FLOW CHARTS 1 Adapted from the slides Prepared by Department of Preparatory year Prepared by: lec. Ghader Kurdi.
1 Algorithm…. 2 Algorithm: Is a planned set of steps to solve certain problem Ex.: Assume for instance that the gross pay of an employee is to be calculated.
Algorithm & Flowchart.
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
Programming is instructing a computer to perform a task for you with the help of a programming language.
ALGORITHMS AND FLOWCHARTS
Lecture # 8 ALGORITHMS AND FLOWCHARTS. Algorithms The central concept underlying all computation is that of the algorithm ◦ An algorithm is a step-by-step.
An ordered sequence of unambiguous and well-defined instructions that performs some task and halts in finite time Let's examine the four parts of this.
CSE 102 Introduction to Computer Engineering What is an Algorithm?
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
Software Life Cycle What Requirements Gathering, Problem definition
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
Chapter Algorithms 3.2 The Growth of Functions 3.3 Complexity of Algorithms 3.4 The Integers and Division 3.5 Primes and Greatest Common Divisors.
Basics of C Session 1. Elementary Programming with C/Session 1/ 2 of 26 Objectives  Differentiate between Command, Program and Software  Explain the.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Program Design. The design process How do you go about writing a program? –It’s like many other things in life Understand the problem to be solved Develop.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Problem, Problem Solving, Algorithm & Flow Charts –Part 1 Presented By Manesh T Course:101 CS 101CS Manesh T1.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
Algorithms and Pseudocode
ALGORITHMS AND FLOWCHARTS. Why Algorithm is needed? 2 Computer Program ? Set of instructions to perform some specific task Is Program itself a Software.
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
STEP 3- DEVELOP AN ALGORITHM At this stage we break down the problem into simple manageable steps so that they can be handled easily.
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
PROBLEM SOLVING. What is a Problem? A problem is a situation that needs to be resolved.
Program Program is a collection of instructions that will perform some task.
Flow Charts And Pseudo Codes Grade 12. An algorithm is a complete step-by- step procedure for solving a problem or accomplishing a task.
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
CSE 110: Programming Language I Matin Saad Abdullah UB 404.
Program Design & Development EE 201 C7-1 Spring
ALGORITHMS AND FLOWCHARTS
CS1010 Programming Methodology
GC101 Introduction to computers and programs
Problem , Problem Solving, Algorithm & Flow Charts –Part 1
FLOWCHARTS.
Topic:- ALGORITHM Incharge Faculty – Lokesh Sir.
PROGRAM CONTROL STRUCTURE
Lecture 2 Introduction to Programming
Introduction to Algorithm – part 1
ALGORITHMS & FLOWCHARTING II
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
ALGORITHMS AND FLOWCHARTS
Problem Solving Techniques
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
ALGORITHMS AND FLOWCHARTS
Introduction to Algorithms and Programming
Problem Solving Skill Area 305.1
Introduction to Algorithms - 1
Programming Fundamentals (750113) Ch1. Problem Solving
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Flowcharts and Pseudo Code
Introduction to Programming
Programming Fundamentals (750113) Ch1. Problem Solving
WJEC GCSE Computer Science
Introduction to Algorithms - 2
Introduction to Algorithms - 2
Presentation transcript:

Flowchart

a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation of a computer program in relation to its sequence of functions (as distinct from the data it processes).

Problem: Draw the flowchart to find the maximum value from the 2 values entered by the user. Problem: Draw the flowchart to find the maximum value from the 3 values entered by the user.

Algorithm

An algorithm is a set of instructions designed to perform a specific task. Step wise solution of any given problem is known as algorithm.

Qualities of an good algorithm Inputs and outputs should be defined precisely. Each steps in algorithm should be clear and unambiguous. Algorithm should be most effective among many different ways to solve a problem. An algorithm shouldn't have computer code. Instead, the algorithm should be written in such a way that, it can be used in similar programming languages.

Write an algorithm to add two numbers entered by user. Step 1: Start Step 2: Declare variables num1, num2 and sum. Step 3: Read values num1 and num2. Step 4: Add num1 and num2 and assign the result to sum. sum←num1+num2 Step 5: Display sum Step 6: Stop

Write an algorithm to find the largest among three different numbers entered by user. Step 1: Start Step 2: Declare variables a,b and c. Step 3: Read variables a,b and c. Step 4: If a>b If a>c Display a is the largest number. Else Display c is the largest number. Else If b>c Display b is the largest number. Else Display c is the greatest number. Step 5: Stop

Write an algorithm to find the factorial of a number entered by user. Step 1: Start Step 2: Declare variables n,factorial and i. Step 3: Initialize variables factorial←1 i←1 Step 4: Read value of n Step 5: Repeats the steps until i=n 5.1: factorial←factorial*i 5.2: i←i+1 Step 6: Display factorial Step 7: Stop