Algorithm: Step1: Start Step2: Initialize variables sum = 0 and count = 0 (PROCESS) Step3: Enter number (n) (I/O) Step4: Find sum + n and assign it to sum and then increment count by 1 (PROCESS) Step5: Is count < 100 (DECISION) if YES go to step 2 else Print sum (I/O) Step6: Stop Example2 - Print Hello World 10 times Algorithm: Step1: Start Step2: Initialize count = 0 (PROCESS) Step3: Print “Hello World” (I/O) Step4: Increment count by 1 (PROCESS) Step5: Is count < 10 (DECISION) if YES go to step 2 else Stop Step6: Stop Complex process/ Sub routine/ Pre-defined process
This symbol is used to display a subroutine, pre-defined process, or an interrupt
program Example: Draw a flowchart to calculate the area and circumference of a circle for user input radius. The user should have the option to select what they want to calculate. Exersice5- Draw a flowchart to log in to Facebook account Algorithm: Step1: Start Step2: Enter www.facebook.com in your browser. (I/O) Step3: Facebook Home page loads (PROCESS) Step4: Enter your Email ID and Password (I/O) Step5: Is Email ID and Password Valid (DECISION) Step6: if NO then Log in error (PROCESS) go to step 3 else Display Facebook Account (I/O) Step7: Stop