{"id":18939,"date":"2017-02-26T07:41:21","date_gmt":"2017-02-26T07:41:21","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=18939"},"modified":"2024-08-29T05:41:48","modified_gmt":"2024-08-29T05:41:48","slug":"raptor-flow-chart-for-multiplication-table","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/raptor-flow-chart-for-multiplication-table\/","title":{"rendered":"RAPTOR Chart for Multiplication Table"},"content":{"rendered":"<h2>RAPTOR Chart for Multiplication Table<\/h2>\n<p>In this post, we will model a Raptor Flow chart for the Multiplication Table. The flowchart would prompt the user to enter the number for which the multiplication table would be displayed.<\/p>\n<h2>RAPTOR Flowchart<\/h2>\n<p>Let&#8217;s assume the table will have ten rows. The flow chart will generate ten rows for the table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18948\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart.png\" alt=\"Multiplication Table Flowchart\" width=\"879\" height=\"1613\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart.png 879w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart-163x300.png 163w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart-558x1024.png 558w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart-768x1409.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/MultiplicationTable-Flowchart-837x1536.png 837w\" sizes=\"auto, (max-width: 879px) 100vw, 879px\" \/><\/p>\n<h3>Sample Output<\/h3>\n<p>Sample output for input N= 10.<\/p>\n<p>Note that the flowchart assumes valid input from the user.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18947\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output.png\" alt=\"Multiplication Table Output\" width=\"1810\" height=\"957\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output.png 1810w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output-300x159.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output-1024x541.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output-768x406.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Multiplication-Table-Output-1536x812.png 1536w\" sizes=\"auto, (max-width: 1810px) 100vw, 1810px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Flowchart Output<\/h2>\n<p>Multiplication Table for 10<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1 * 10 = 10<br \/>\n2 * 10 = 20<br \/>\n3 * 10 = 30<br \/>\n4 * 10 = 40<br \/>\n5 * 10 = 50<br \/>\n6 * 10 = 60<br \/>\n7 * 10 = 70<br \/>\n8 * 10 = 80<br \/>\n9 * 10 = 90<br \/>\n10 * 10 = 100<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>&nbsp;<\/p>\n<p>Each iteration in the loop(repetition structure) displays one row of the table. The loop terminates when the row is more than the number of rows in the table. i.e 10.<\/p>\n<h3>Enhancements<\/h3>\n<p>Constant for Table Row<\/p>\n<p>We can further enhance the flowchart to include a constant for the table row count. Alternatively, we can declare a constant, such as TABLE_ROWS, and assign the value to the constant. We can now have the loop condition to check:<\/p>\n<p>row &gt; TABLE_ROWS<\/p>\n<p>User Input validation.<\/p>\n<p>As you can see, the user input for the variable N is not validated. We just assumed that the user would input a number. We can further enhance the flowchart to be defensive.<\/p>\n<h2>RAPTOR Tutorials<\/h2>\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><a href=\"https:\/\/raptor.martincarlisle.com\/\" rel=\"noopener\">https:\/\/raptor.martincarlisle.com\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>RAPTOR Chart for Multiplication Table In this post, we will model a Raptor Flow chart for the Multiplication Table. The flowchart would prompt the user to enter the number for which the multiplication table would be displayed. RAPTOR Flowchart Let&#8217;s assume the table will have ten rows. The flow chart will generate ten rows for [&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-18939","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\/18939","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=18939"}],"version-history":[{"count":14,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18939\/revisions"}],"predecessor-version":[{"id":23938,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18939\/revisions\/23938"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=18939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=18939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=18939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}