{"id":4586,"date":"2018-10-06T09:09:11","date_gmt":"2018-10-06T09:09:11","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4586"},"modified":"2025-09-20T14:59:30","modified_gmt":"2025-09-20T14:59:30","slug":"find-a-number-is-even-or-odd-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/find-a-number-is-even-or-odd-raptor-flowchart\/","title":{"rendered":"Find a Number is Even or Odd Raptor Flowchart"},"content":{"rendered":"<h1>Find a Number is Even or Odd Raptor Flowchart<\/h1>\n<p>In this tutorial, we will design a Raptor flowchart to find an even or odd number. The logic is that we will divide the given number by 2 and check the reminder. If the remainder is zero, the number is even; otherwise, it is an odd number.<\/p>\n<h2>IPO chart<\/h2>\n<p>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.<\/p>\n<p>&nbsp;<\/p>\n<table border=\"1\" width=\"539\" cellspacing=\"1\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td><strong>Input<\/strong><\/td>\n<td><strong>Process <\/strong><\/td>\n<td><strong>Output <\/strong><\/td>\n<\/tr>\n<tr>\n<td>Input to the flowchart.<\/td>\n<td>Computations that are done in the flowchart.<\/td>\n<td>Output displayed by the flowchart<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><\/h3>\n<h2>Raptor Flowchart<\/h2>\n<p>Prompt the user to enter the number.<\/p>\n<p>Selection symbol to check if<strong> n%2 == 0<\/strong><\/p>\n<p>Based on the result,\u00a0 print an Even or Odd number.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4592\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart.png\" alt=\"\" width=\"1920\" height=\"1016\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart-300x159.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart-1024x542.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart-768x406.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Odd-Number-Flowchart-1536x813.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Flowchart Output<\/h2>\n<p>Let&#8217;s run the flowchart with sample test cases to verify that it&#8217;s working as intended. If you find that it is not working as intended during the testing, we may need to verify and debug it.<\/p>\n<p>Debugging a flowchart:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/debugging-a-raptor-flowchart\/\">https:\/\/www.testingdocs.com\/debugging-a-raptor-flowchart\/<\/a><\/li>\n<\/ul>\n<h2>Run TestCase 1<\/h2>\n<p>Sample run output of flowchart<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4591\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number.png\" alt=\"Even or Odd Number\" width=\"1920\" height=\"1010\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number-300x158.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number-1024x539.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number-768x404.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-or-Odd-Number-1536x808.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h2><\/h2>\n<h2>Run Test Case 2<\/h2>\n<p>Run another test case and verify the output of the flowchart:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4593\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number.png\" alt=\"Even or Odd Number\" width=\"1920\" height=\"999\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number-300x156.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number-1024x533.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number-768x400.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Even-Number-1536x799.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Thats it.<\/p>\n<p>&nbsp;<\/p>\n<h2>Video Tutorial<\/h2>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/chCQGeJRVHc?si=nvuRgBj_DTmVuaX4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h3>More Flowchart Examples<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/raptor-flowchart-examples\/\">https:\/\/www.testingdocs.com\/raptor-flowchart-examples\/<\/a><\/li>\n<\/ul>\n<h3>Raptor Tutorial<\/h3>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Find a Number is Even or Odd Raptor Flowchart In this tutorial, we will design a Raptor flowchart to find an even or odd number. The logic is that we will divide the given number by 2 and check the reminder. If the remainder is zero, the number is even; otherwise, it is an odd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[19,208],"class_list":["post-4586","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-raptor","tag-mathematics","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4586"}],"version-history":[{"count":13,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4586\/revisions"}],"predecessor-version":[{"id":27860,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4586\/revisions\/27860"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}