{"id":4691,"date":"2018-10-08T13:08:23","date_gmt":"2018-10-08T13:08:23","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4691"},"modified":"2024-12-14T05:43:21","modified_gmt":"2024-12-14T05:43:21","slug":"weekly-gross-pay-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/weekly-gross-pay-raptor-flowchart\/","title":{"rendered":"Weekly Gross Pay Raptor Flowchart"},"content":{"rendered":"<h1>Weekly Gross Pay Raptor Flowchart<\/h1>\n<h3>Problem<\/h3>\n<p>Calculate the weekly gross pay for an employee using a\u00a0 Raptor Flowchart. Based on the below information.<\/p>\n<p>Overtime rule: If the employee works for more than 30 hrs\/week, the company pays 20% extra on all the hours worked overtime.<\/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<h3><\/h3>\n<h3>Weekly Gross Pay Flowchart<\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4695\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1.png\" alt=\"\" width=\"1741\" height=\"973\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1.png 1741w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1-300x168.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1-1024x572.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1-768x429.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Pay1-1536x858.png 1536w\" sizes=\"auto, (max-width: 1741px) 100vw, 1741px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4696\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2.png\" alt=\"\" width=\"1920\" height=\"1003\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2-300x157.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2-1024x535.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2-768x401.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-pay2-1536x802.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<h3>Pseudocode<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">START\r\n\/\/Declare variables used in the flowchart\r\n    hoursWorked =0;\r\n    ratePerHour =0;\r\n    grossPay =0;\r\n    overTime =\"\";\r\n\r\n\/\/Take input from the user    \r\n    PROMPT =\"Enter weekly hours worked :=\";\r\n    INPUT hoursWorked\r\n    PROMPT =\"Enter rate per hour := $\";\r\n    INPUT ratePerHour;\r\n\r\n\/\/overtime logic calculations\t\r\n  IF (hoursWorked&gt;30)\r\n         {\r\n            overTime =\"Yes\";\r\n            grossPay =30*ratePerHour+(hoursWorked-30)*1.2*ratePerHour; \r\n\/\/ 20 % extra for overtime 1+ 20\/100 = 1.2\r\n         }\r\n    ELSE\r\n         {\r\n            overTime =\"No\";\r\n            grossPay =hoursWorked*ratePerHour;\r\n         }\r\n     \r\n\/\/ Output\t\t \r\n    PRINT (\"Hours Worked :=\"+hoursWorked);\r\n    PRINT (\"Rate per hour := $\"+ratePerHour);\r\n    PRINT (\"OverTime ?=\"+overTime);\r\n    PRINT (\"Weekly gross pay := $\"+grossPay);\r\nEND<\/pre>\n<p>&nbsp;<\/p>\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-4694\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output.png\" alt=\"Weekly Gross Flowchart Output\" width=\"1920\" height=\"970\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output-300x152.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output-1024x517.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output-768x388.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Weekly-Gross-Flowchart-Output-1536x776.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Hours Worked :=45<br \/>\nRate per hour := $10<br \/>\nOverTime ?=Yes<br \/>\nWeekly gross pay := $480<br \/>\n&#8212;-Run complete. 16 symbols evaluated.&#8212;-<\/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><\/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>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Weekly Gross Pay Raptor Flowchart Problem Calculate the weekly gross pay for an employee using a\u00a0 Raptor Flowchart. Based on the below information. Overtime rule: If the employee works for more than 30 hrs\/week, the company pays 20% extra on all the hours worked overtime. IPO chart Consider modeling an IPO chart for the flowchart [&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],"class_list":["post-4691","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-raptor","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\/4691","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=4691"}],"version-history":[{"count":10,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4691\/revisions"}],"predecessor-version":[{"id":26459,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4691\/revisions\/26459"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}