RAPTOR Flowchart Exercises•Practice on Decision Making, Loops, and BasicLogic• RAPTOR is a visual programming tool used todesign and trace algorithms using flowcharts.This presentation offers exercises to build logicusing RAPTOR’s symbols—Input/Output,Assignment, Decision, and Loop structures.• Objective: Strengthen understanding of
Input and OutputExercises• Concept: Using Input and Output symbolscorrectly forms the basis of every flowchart.• Example: Input name and display “Hello<name>”.• Exercise:• Create a RAPTOR flowchart that takes user ageand prints:• - “Minor” if age < 18
4.
Decision Structure (IF-THEN-ELSE)•Concept: The decision diamond allowsbranching.• Example: Input a number N and check if it iseven or odd.• Exercise:• Design a flowchart to input marks and display:• - “Pass” if marks ≥ 40• - “Fail” otherwise.
5.
Nested Decision Example•Concept: Decisions can be nested to handlemultiple outcomes.• Example: Input temperature and print “Cold”,“Warm”, or “Hot”.• Exercise:• Create a RAPTOR flowchart to determine thelargest of three numbers A, B, and C.• Hint: Use nested IFs or multiple diamonds.
6.
Looping Structures (WHILELoop)• Concept: Loops help repeat operations until acondition becomes false.• Example: Print numbers from 1 to 5 using aWHILE loop.• Exercise:• Write a RAPTOR flowchart that prints the sumof first 10 natural numbers.• Hint: Use a counter variable initialized to 1,add to SUM, and increment until counter > 10.
7.
FOR Loop Practice•Concept: FOR loops simplify countingoperations.• Example: Display the square of numbers 1 to5.• Exercise:• Create a RAPTOR flowchart using a FOR loopto calculate the factorial of a number N.• Key Tip: Initialize result = 1 and multiply byloop variable each iteration.
8.
Arrays in RAPTOR•Concept: Arrays store multiple values underone name.• Example: Input 5 numbers into array A andfind their sum.• Exercise:• Design a flowchart that takes marks of 5students and prints the average.• Hint: Use loop + array index variable.
9.
Complex Exercise –Nested Loops• Concept: Nested loops help process multi-level data.• Example: Generate a multiplication table (1 to5).• Exercise:• Design a RAPTOR flowchart to print a pattern:• *• **
10.
Summary & PracticeChallenge• Summary:• You learned to use input/output, decisions,loops, and arrays in RAPTOR.• Challenge Exercise:• Create a RAPTOR flowchart that:• 1. Inputs 5 numbers• 2. Finds the maximum, minimum, and average• 3. Displays all three results