{"id":4555,"date":"2018-10-06T06:11:29","date_gmt":"2018-10-06T06:11:29","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4555"},"modified":"2024-09-04T18:02:11","modified_gmt":"2024-09-04T18:02:11","slug":"tip-and-gst-calculator-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/tip-and-gst-calculator-raptor-flowchart\/","title":{"rendered":"GST Calculator Raptor Flowchart"},"content":{"rendered":"<h2>GST Calculator Raptor Flowchart<\/h2>\n<p>Raptor flowchart for Tip and GST Calculator program.<\/p>\n<h2>Problem Statement<\/h2>\n<p>Raptor flowchart that will calculate the <strong>Tip%<\/strong> and <strong>18% GST<\/strong> on a restaurant meal price. The user will enter the price and the flowchart will calculate<\/p>\n<ul>\n<li>Tip<\/li>\n<li>GST and<\/li>\n<li>Total restaurant Bill.<\/li>\n<\/ul>\n<p>The Total restaurant Bill = meal price + Tip + GST.<\/p>\n<p>The flowchart should display the Tip amount, GST, and Total. The tip percent should be as per the chart:<\/p>\n<p><strong>Meal Price\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Tip Percent<\/strong><br \/>\n<strong>&lt; 50\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10%<\/strong><br \/>\n<strong>&gt; = 50\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 15%<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Raptor Flowchart<\/h3>\n<p>Initialize all the variables that are required in the flowchart.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4562\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST1.png\" alt=\"GST\" width=\"1449\" height=\"962\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST1.png 1449w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST1-300x199.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST1-1024x680.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST1-768x510.png 768w\" sizes=\"auto, (max-width: 1449px) 100vw, 1449px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Tip Logic<\/h3>\n<p>Use a selection symbol to decide on the tip percentage.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4563\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST2.png\" alt=\"\" width=\"1299\" height=\"727\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST2.png 1299w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST2-300x168.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST2-1024x573.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST2-768x430.png 768w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Output the calculated amounts like tip, GST, total bill.<\/p>\n<h3>Flowchart Output<\/h3>\n<p>A sample run of the flow chart.<\/p>\n<p>Welcome to GST Calculator Program<br \/>\nMeal Price = $50<br \/>\nTip = $7.5000<br \/>\nGST = $9<br \/>\nTotal Bill = $66.5000<br \/>\n&#8212;-Run complete. 18 symbols evaluated.&#8212;-<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4564\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3.png\" alt=\"\" width=\"1920\" height=\"968\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3-300x151.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3-1024x516.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3-768x387.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/GST3-1536x774.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Further enhancements<\/h3>\n<p>#1<\/p>\n<p>Make the flowchart modular. Use modules like takeInput, SetTipPercentage, Output module etc.<\/p>\n<p>#2<\/p>\n<p>As you can see in the output, the tip and bill amounts are displayed up to 4 significant decimal places.<\/p>\n<p>Total Bill = $66.5000<\/p>\n<p>Can we round the amount to 2 significant decimal places? Left as an exercise for the reader.<\/p>\n<p>&nbsp;<\/p>\n<h2>Raptor Tutorials<\/h2>\n<p>Raptor Tutorials on this website:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\">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:\/\/www.raptor.martincarlisle.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.raptor.martincarlisle.com\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>GST Calculator Raptor Flowchart Raptor flowchart for Tip and GST Calculator program. Problem Statement Raptor flowchart that will calculate the Tip% and 18% GST on a restaurant meal price. The user will enter the price and the flowchart will calculate Tip GST and Total restaurant Bill. The Total restaurant Bill = meal price + Tip [&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":[],"class_list":["post-4555","post","type-post","status-publish","format-standard","hentry","category-flowchart","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\/4555","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=4555"}],"version-history":[{"count":9,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4555\/revisions"}],"predecessor-version":[{"id":24214,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4555\/revisions\/24214"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}