0% found this document useful (0 votes)
157 views2 pages

Class 6 Flow Chart Instructions

The document outlines various flowchart instructions for different programming tasks, including calculating sums, printing numbers based on conditions, and determining the greatest of three numbers. Each task is broken down into a series of steps involving initialization, decision-making, and looping. The instructions cover tasks such as finding multiples of numbers, summing even numbers, and checking if an integer is even or odd.

Uploaded by

shristibk5d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views2 pages

Class 6 Flow Chart Instructions

The document outlines various flowchart instructions for different programming tasks, including calculating sums, printing numbers based on conditions, and determining the greatest of three numbers. Each task is broken down into a series of steps involving initialization, decision-making, and looping. The instructions cover tasks such as finding multiples of numbers, summing even numbers, and checking if an integer is even or odd.

Uploaded by

shristibk5d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

 Start

 Initialize sum = 0, count = 1


 Decision Box: Check if count ≤ 10

 If YES:
o Add 5 to sum
o Print sum
o Increment count
o Repeat the decision step
 If NO: End the program

To print the numbers divisible by 2 from 2 to 15.

1. Start (Oval shape)


2. Initialization (Rectangle shape): Set num = 2
3. Decision Box (Diamond shape): Check if num ≤ 15
o If NO, go to End
o If YES, proceed
4. Another Decision Box: Check if num % 2 == 0
o If YES, Print num
o If NO, skip printing
5. Increment num by 1 (Rectangle shape)
6. Loop back to the decision box (Step 3)
7. End (Oval shape)

To print the greatest number among the three supplied numbers.

1. Start (Oval shape)


2. Input three numbers (Parallelogram shape)
3. Decision Box (Diamond shape): Check if A > B and A > C
o If YES → Print A is the greatest
o If NO → Go to next decision
4. Decision Box: Check if B > A and B > C
o If YES → Print B is the greatest
o If NO → Print C is the greatest
5. End (Oval shape)

To Compute the Sum of the First 10 Natural Numbers

1. Start (Oval shape)


2. Initialize variables (Rectangle shape): Set sum = 0, num = 1
3. Decision Box (Diamond shape): Check if num ≤ 10
o If YES:
 Add num to sum (sum = sum + num) (Rectangle shape)
 Increment num by 1 (Rectangle shape)
 Loop back to the decision box
o If NO, proceed to the next step
4. Print the sum (Parallelogram shape)
5. End (Oval shape)

Flowchart Instructions to Find the Multiples of 5 from 10 to 100


1. Start (Oval shape)
2. Initialize variable (Rectangle shape): Set num = 10
3. Decision Box (Diamond shape): Check if num ≤ 100
o If YES:
 Print num (Parallelogram shape)
 Increment num by 5 (num = num + 5) (Rectangle shape)
 Loop back to the decision box
o If NO, proceed to the next step
4. End (Oval shape)

Flowchart Instructions to Find the Sum of the First 50 Even Numbers

1. Start (Oval shape)


2. Initialize variables (Rectangle shape):
o sum = 0
o num = 2 (first even number)
o count = 1 (to track the count
of even numbers)
3. Decision Box (Diamond shape): Check if count ≤ 50
o If YES:
 Add num to sum (sum = sum + num) (Rectangle shape)
 Increment num by 2 (num = num + 2) (Rectangle shape)
 Increment count by 1 (count = count + 1) (Rectangle shape)
 Loop back to the decision box
o If NO, proceed to the next step
4. Print the sum (Parallelogram shape)
5. End (Oval shape)

Flowchart Instructions to Print Squares and Cubes of the First 10 Natural Numbers

1. Start (Oval shape)


2. Initialize variable (Rectangle shape): Set num = 1
3. Decision Box (Diamond shape): Check if num ≤ 10
o If YES:
 Calculate square = num * num (Rectangle shape)
 Calculate cube = num * num * num (Rectangle shape)
 Print num, square, cube (Parallelogram shape)
 Increment num by 1 (num = num + 1) (Rectangle shape)
 Loop back to the decision box
o If NO, proceed to the next step
4. End (Oval shape)

Flowchart Instructions to Check Whether an Integer is Even or Odd

1. Start (Oval shape)


2. Input the integer (Parallelogram shape)
3. Decision Box (Diamond shape): Check if number % 2 == 0
o If YES → Print "The number is EVEN" (Parallelogram shape)
o If NO → Print "The number is ODD" (Parallelogram shape)
4. End (Oval shape)

You might also like