{"id":5634,"date":"2017-12-28T05:34:22","date_gmt":"2017-12-28T05:34:22","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=5634"},"modified":"2024-09-04T06:55:18","modified_gmt":"2024-09-04T06:55:18","slug":"sum-of-digits-of-a-number-raptor-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/sum-of-digits-of-a-number-raptor-flowchart\/","title":{"rendered":"Sum of Digits of a Number Raptor Flowchart"},"content":{"rendered":"<h2>Sum of Digits of a Number Raptor Flowchart<\/h2>\n<p>In this article, we will create a RAPTOR flowchart to calculate the Sum of digits of a number. The flowchart would prompt the user to enter a positive number. The flowchart should compute and output the sum of digits.<\/p>\n<p>For example:<\/p>\n<p>number = 9875<\/p>\n<p>Flowchart output = 9 + 8 + 7 + 5<\/p>\n<p>= 29<\/p>\n<p>&nbsp;<\/p>\n<h3>Flowchart<\/h3>\n<p>We will divide the number by 10 to get the last digit.<\/p>\n<p>To get the quotient<\/p>\n<p>quotient = floor(number\/10);<\/p>\n<p>Accumulate the digits in an accumulator to get the sum of digits.<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5669\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-Digits-RAPTOR-Flowchart.png\" alt=\"Sum of Digits RAPTOR Flowchart\" width=\"1197\" height=\"913\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-Digits-RAPTOR-Flowchart.png 1197w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-Digits-RAPTOR-Flowchart-300x229.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-Digits-RAPTOR-Flowchart-1024x781.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-Digits-RAPTOR-Flowchart-768x586.png 768w\" sizes=\"auto, (max-width: 1197px) 100vw, 1197px\" \/><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5670\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-digits-of-a-number-flowchart-2.png\" alt=\"\" width=\"1051\" height=\"921\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-digits-of-a-number-flowchart-2.png 1051w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-digits-of-a-number-flowchart-2-300x263.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-digits-of-a-number-flowchart-2-1024x897.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Sum-of-digits-of-a-number-flowchart-2-768x673.png 768w\" sizes=\"auto, (max-width: 1051px) 100vw, 1051px\" \/><\/p>\n<h3><\/h3>\n<h3>Sample output<\/h3>\n<p>Sum of digits of the number 9875 is =: 29<\/p>\n<h3>More Flowchart Examples<\/h3>\n<p><strong><a href=\"https:\/\/www.testingdocs.com\/raptor-flowchart-examples\/\">https:\/\/www.testingdocs.com\/raptor-flowchart-examples\/<\/a><\/strong><\/p>\n<h3>Raptor Tutorial<\/h3>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/strong><\/a><\/p>\n<p>RAPTOR official website: <a href=\"https:\/\/raptor.martincarlisle.com\/\" rel=\"noopener\">https:\/\/raptor.martincarlisle.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sum of Digits of a Number Raptor Flowchart In this article, we will create a RAPTOR flowchart to calculate the Sum of digits of a number. The flowchart would prompt the user to enter a positive number. The flowchart should compute and output the sum of digits. For example: number = 9875 Flowchart output = [&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-5634","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\/5634","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=5634"}],"version-history":[{"count":6,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/5634\/revisions"}],"predecessor-version":[{"id":24001,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/5634\/revisions\/24001"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=5634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=5634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=5634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}