Introduction
In this tutorial, we will design a flowchart to find a Number that is Even or Odd Raptor Flowchart. The logic is we will divide the given number by 2 and check the reminder. if the remainder is zero the number is even, else the given number is an odd number.
IPO chart
Consider modeling an IPO chart for the flowchart before the flowchart design. Think about the input to the flowchart, processing statements, and the output of the flowchart. IPO chart is a handy tool to visualize in a tabular format.
Input | Process | Output |
Input to the flowchart. | Computations that are done in the flowchart. | Output displayed by the flowchart |
Raptor Flowchart
Prompt the user to enter the number.
Selection symbol to check if n%2 == 0
Based on the result, print Even or Odd number.
Output
Let’s run the flowchart with sample test cases to verify that it’s working as intended. If you find that the flowchart is not working as intended in the testing, we may need to verify and debug the flowchart.
Debugging a flowchart: https://www.testingdocs.com/debugging-a-raptor-flowchart/
TestCase
Sample run output of flowchart
Test Case
Another output of the flowchart:
More Flowchart Examples
https://www.testingdocs.com/raptor-flowchart-examples/
Raptor Tutorial
Raptor Tutorials on this website can be found at:
https://www.testingdocs.com/raptor-a-flowchart-tool/
RAPTOR official website: https://raptor.martincarlisle.com/