Zed-King Institute
    All Notes

    O Level · Chapterwise Notes

    Chapter 2: Algorithms and Flowcharts

    Zed-King Study app · Free

    O Level students across India practise here, free

    Daily M1–M4 quizFull 100-question mocksAll-India rank
    Open the free app

    Google login · no Play Store needed

    🏆 Free All-India Sunday Mock · Sun, 29 Nov, 11 AM · CCC + O LevelRegister

    About this PDF

    Writing algorithms, flowchart symbols and building program logic step by step.

    This is part of the free O Level M3-R5.1 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.

    Course
    O Level — NIELIT Foundation Diploma
    Module
    M3 — M3-R5.1: Programming and Problem Solving through Python
    Section
    Chapterwise Notes
    Format
    PDF — read online or download
    Price
    Free, no sign-up required

    Text from this PDF

    The opening pages as plain text — open the reader above for tables, diagrams and the full file.

    CHAPTER-2 Algorithms & Flowcharts An algorithm/Flowchart may employ three control structures

    1. Sequential based processing

    2. Decision based processing

    3. Iterative ot repetition processing Sequential based processing/Normal Processing: ' In the sequence structure, statements are place one after the other and the execution takes place starting from up to down.

    2 Decision based processing/Controlling/seleeting/eonditional/Branch',- In branch control there is a condition and according to a condition, a decision of either TRUE or FALSE is achieved In the case of TRUE, one of the two branches is explored but in the case of FALSE condition, the other alternative is taken, Generally, the 'IF-THEN' is used to represent branch control 3 Iterative or repetition processing:-

    The loop or repetition allows statements to be executed repeatedly based on certain loop condition e.g. WHILE, FOR loops, Algorithm & flowchart to find sum of two numbers Step-I step-2 Step4 input first number say A input second number say B SUM=A+B display SUM of A SUM=A+B Print SUM Stoo Algorithm & flowchart to find subtraction of two numbers Step. I input first number say A input second number say B

    SUB-A-B display SUB of A of 3 SUB=A.g Print SUB Stoo Algorithm & flowchart to represent your name Step- 1 Step- J Step—4 S tart input name display name Print mul Algorithm & flowchart to find square of number input one number say A sqr=A * A display sqr input value Of A sqr=A A Print sqr Algorithm & flowchart to find cube of number Step-2 input one number say A Step-4 display cube cube-ASA*A print cube

    Algorithm & flowchart to find power of any number Step-2 input two number say A & B Step-4 display res Step-5 Slop 0fA&8 Ptirit Algorithm & flowchart to swap two number using temporary (third) variable Step-I step-2 step-7 Step-g input two number say numl & num2 display before swap values numl, num2 temp=numl numl=num2 num2=numI display after swap value numl, num2 stop input value numi.

    num2 temp;numl num1=num2 tiur•O Stap Algorithm & flowchart to swap two number without using temporary (third) variable Step-2 input two number say x & y Step-3 display before swap values x, y Step-4 x;x+y Step-6 x=x-y Step-7 display after swap value x, y Step-8 *top Stert Output value of y he'nre• Output value after Algorithm & flowchart to find simple interest P: Principle Alnount N: Time in Year R; % Annual Rate of Interest

    Sl; Simple Interest Step-2 input value of P, N, R Step-4 display Sl Print Sl Algorithm & flowchart to find compound interest P: Principle Arnount N: Time in Year R: % Annual Rate of Interest Cli Compound Interest Step-I Stan step-2 input Step-4 display Cl Print Cl Algorithm & flowchart to find area and perimeter of square L: Length of Square Area: Area of Squarc Perimeter; perimeter of Square Step- I

    input side length of square say L Display Area, Perimeter Slop value of Peri Algorithm & flowchart to find area and perimeter of Rectangle L: Length of Rectangle B: Breadth of Rectangle Area: Area of Rectangle Perimeter: perinrter of Rectangle Slep- I input side length & breadth say L B Display Area, Perimeter Algorithm & flowchart to find arca and perimeter of circle R; radius 01' circle Area; Area of circle

    Perimeter: perimeter of circle Step-I Slart Step-2 input radius of circle say R step-4 Stcp-5 Display Area, Perimeter Step-6 Stop Are ISP'er•ntet Algorithm & flowchart to find area and perimeter of Triangle A: First side of triangle B: Second side of triangle C: Third side of triangle Area: Area of triangle Perimeter: perimeter of triangle Step- I Step-7 input of triangle Perimeter—S I +S2+S3 Display Area, Perimeter

    Algorithm flowchart to convert temperature Celsius Io Fahrenheit C: temperature of Cel*ius F: temperature of Fahrenheit Step-2 input temperature in Celsius say C Step-4 display temperature in Fahrenheit F Slep-5 Slop value of Print Algorithm & flowchart to convert temperature from Fahrenheit to Celsius C temperature of Celsius Fl temperature of Fahrenheit Slcp-2 input temperature in Fahrenheit say F

    More chapterwise notes for M3-R5.1

    Run these Python programs yourself — free

    Reading code is not the same as writing it. Type any program from these notes into our free online Python compiler (real Python 3 with NumPy, input() works), or study one of the explained programs with its output.

    Prepare for O Level with expert guidance

    Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.

    Drag me!