{"id":4837,"date":"2017-10-17T15:43:15","date_gmt":"2017-10-17T15:43:15","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4837"},"modified":"2025-07-02T16:37:29","modified_gmt":"2025-07-02T16:37:29","slug":"area-of-circle-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/area-of-circle-raptor-flowchart\/","title":{"rendered":"Area of Circle Raptor Flowchart"},"content":{"rendered":"<h1>Area of Circle Raptor Flowchart<\/h1>\n<p>In this flowchart, we will calculate the area of a circle and display the graphics window if the radius is between 10 and 200 cm. If the radius of the circle is out of this range we just print the value in the console.<\/p>\n<p>The values 10 and 200 are just arbitrary. The circle with a radius &lt; 10 would just look like a small dot on the window. The circle with a greater radius would spill out of the graphic window.<\/p>\n<p>&nbsp;<\/p>\n<h3>IPO chart<\/h3>\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<p>&nbsp;<\/p>\n<h3>Mathematical Formula<\/h3>\n<p>&nbsp;<\/p>\n<p>Area of circle = \u03c0 * r^2<\/p>\n<h2>Area of Circle Flowchart<\/h2>\n<p>The following flowchart computes the area of the circle and displays the circle with the given radius.<\/p>\n<p>To avoid small and big circles on the graphics window, the flowchart checks for the radius range (10, 200).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4842\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1.png\" alt=\"Area of Circle\" width=\"1920\" height=\"986\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1-300x154.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1-1024x526.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1-768x394.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart1-1536x789.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4843\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2.png\" alt=\"\" width=\"1919\" height=\"1000\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2.png 1919w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2-300x156.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2-1024x534.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2-768x400.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Flowchart2-1536x800.png 1536w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<h3><\/h3>\n<h3>Output<\/h3>\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 the flowchart is not working as intended in the testing, we may need to verify and debug the flowchart.<\/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<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4841\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle.png\" alt=\"Area of Circle\" width=\"1920\" height=\"1001\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle-300x156.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle-1024x534.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle-768x400.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Area-of-Circle-1536x801.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3><\/h3>\n<h2>Pseudocode<\/h2>\n<p>&nbsp;<\/p>\n<pre>START\r\n    Dim areaString\r\n    Dim area\r\n    Dim radius\r\n\r\n    clear_console\r\n    radius = 0\r\n    area = 0\r\n    PROMPT \"Enter the radius of the circle(in cm):=\"\r\n    INPUT radius\r\n    area = pi * radius * radius\r\n    areaString = \"Area of the circle is \" + area\r\n  If radius &gt; 10 And radius &lt; 200 Then\r\n    open_graph_window(500,500)\r\n    draw_circle(250,250,radius,light_gray,true)\r\n    display_text(20,20,areaString,black)\r\n    Else\r\n    MsgBox areaString\r\n    End If\r\nEND<\/pre>\n<h3><\/h3>\n<h3>Input validation<\/h3>\n<p>Try to extend the flowchart and validate the user input to accept only positive radius values.<\/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><\/h3>\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<p>RAPTOR official website:<\/p>\n<ul>\n<li><strong>https:\/\/raptor.martincarlisle.com\/<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Area of Circle Raptor Flowchart In this flowchart, we will calculate the area of a circle and display the graphics window if the radius is between 10 and 200 cm. If the radius of the circle is out of this range we just print the value in the console. The values 10 and 200 are [&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":[208],"class_list":["post-4837","post","type-post","status-publish","format-standard","hentry","category-flowchart","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\/4837","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=4837"}],"version-history":[{"count":19,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4837\/revisions"}],"predecessor-version":[{"id":27670,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4837\/revisions\/27670"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}