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.
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 to the flowchart.||Computations that are done in the flowchart.||Output displayed by the 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.
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/
Sample run output of flowchart
Another output of the flowchart:
More Flowchart Examples
Raptor Tutorials on this website can be found at:
RAPTOR official website: https://raptor.martincarlisle.com/