{"id":44994,"date":"2024-04-26T23:13:26","date_gmt":"2024-04-26T23:13:26","guid":{"rendered":"http:\/\/localhost\/branding\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/"},"modified":"2024-04-26T23:13:26","modified_gmt":"2024-04-26T23:13:26","slug":"the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers","status":"publish","type":"post","link":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/","title":{"rendered":"The first program developed was only able to execute a command to calculate odd numbers"},"content":{"rendered":"<p>Name<\/p>\n<p>Tutor<\/p>\n<p>Course<\/p>\n<p>Date <\/p>\n<p>Part A<\/p>\n<p>The problem to be solved<\/p>\n<p>The first program developed was only able to execute a command to calculate odd numbers. The initial C# programming program was not able to get even numbers yet this section was highly needed. For this reason, I had to come up with a way to handle this problem in the best way possible. Not only will the above problem be solved based on the dimension, but also a way to get reliable way of analysing extensive information based on odd and even numbers.  The program is able to solve add and even numbers even to triple digits. <\/p>\n<p>The programming technique Applied<\/p>\n<p>Since the first program was developed, using C# is had to change the codes to Java programming language so that it could be meet the current or the contemporary needs and demands. Therefore, I programmed the codes using Java Language to get better results. All the variables used were in line with Industrial Java codes. Most of the expressions and code initials used were commonly used   <\/p>\n<p>Example of the Code Used <\/p>\n<p>\/*<\/p>\n<p>\u00a0 Even Odd Number Example<\/p>\n<p>\u00a0 This Java Even Odd Number Example shows how to check if the given<\/p>\n<p>\u00a0 number is even or odd.<\/p>\n<p>*\/<\/p>\n<p>\u00a0<\/p>\n<p>public class FindEvenOrOddNumber {<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 public static void main(String[] args) {<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/create an array of 10 numbers<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 int[] numbers = new int[]{1,2,3,4,5,6,7,8,9,10};<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 for(int i=0; i &lt; numbers.length; i++){<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/*<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* use modulus operator to check if the number is even or odd.\u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* If we divide any number by 2 and reminder is 0 then the number is<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0* even, otherwise it is odd. <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0*\/<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0if(numbers[i]%2 == 0)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 System.out.println(numbers[i] + &#8221; is even number.&#8221;);<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0else<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 System.out.println(numbers[i] + &#8221; is odd number.&#8221;);<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 }<\/p>\n<p>}<\/p>\n<p>\u00a0<\/p>\n<p>\/*<\/p>\n<p>Output of the program would be<\/p>\n<p>1 is odd number.<\/p>\n<p>2 is even number.<\/p>\n<p>3 is odd number.<\/p>\n<p>4 is even number.<\/p>\n<p>5 is odd number.<\/p>\n<p>6 is even number.<\/p>\n<p>7 is odd number.<\/p>\n<p>8 is even number.<\/p>\n<p>9 is odd number.<\/p>\n<p>10 is even number.<\/p>\n<p>*\/<\/p>\n<p>The code above offered a unique and a simple way of getting odd and even numbers in the easiest way possible. The program was designed to meet the needs of school going children. Industrially, the code will be used to make sample calculators for easy usage. <\/p>\n<p>Lesson Learned <\/p>\n<p>I noted that the experience obtained after making this first simple Java programming program was that the world of programing is a simple one and that it entails finding loopholes or gaps in programs and to develop outstanding programs that will meet the needs of the people. I also learned that there are gaps in current programs that can be bridged using programming platform. Being able to adopt such codes and coming up with such a program is composed of various analytical skills and concepts. The most vital lesson gained from the developed or creation of the above program is that one can be able to analyse and integrate basic skills to come up with a modern program. I also noted that the development of such programs is a way to develop thinking skills.  I conclude that the development of computer programs is not all about coming up with a code, but it improves one abstract skill among other knowledge.  <\/p>\n<p>Part 2<\/p>\n<p>The Problem <\/p>\n<p>The computing problem to be noted in this cases it to find the area of a figure or an image given the dimensions. Therefore, the program if feed with the dimensions are to get accurate and fast output. Most teachers and tutor in high schools and colleges are faced with such problems hence the program will be able to generate marking schemes with easy and to avoid marking delays. In addition, students are also able to mark for themselves their assignments. The problem was to integrate basic mathematical concepts with the aim of coming up with an ideal computational results. <\/p>\n<p>Method used<\/p>\n<p>Since the program is, a simple numeric program hence used basic mathematics manipulation techniques. The program was to get and area of an image given the dimensions hence easy to define the codes. Despite the fact that the problem was to solve a computational problem, I had to employ programming skills so that the problem must have a long-term solution. This helps solve the problem at once. <\/p>\n<p>Sample Codes Used<\/p>\n<p>01 import java.util.Scanner;<\/p>\n<p>02 \u00a0<\/p>\n<p>03 public class Circle<\/p>\n<p>04 {<\/p>\n<p>05 public static void main(String[] args)<\/p>\n<p>06 \u00a0\u00a0\u00a0\u00a0{<\/p>\n<p>07 Scanner circle = new Scanner (System.in);<\/p>\n<p>08 \u00a0\u00a0\u00a0\u00a0\u00a0int radius;<\/p>\n<p>09 \u00a0\u00a0\u00a0\u00a0\u00a0float pi =(float) 3.14159265;<\/p>\n<p>10 \u00a0\u00a0\u00a0\u00a0\u00a0float diameter;<\/p>\n<p>11 \u00a0\u00a0\u00a0\u00a0\u00a0float circumference;<\/p>\n<p>12 \u00a0\u00a0\u00a0\u00a0\u00a0float area;<\/p>\n<p>13 \u00a0<\/p>\n<p>14 \u00a0\u00a0\u00a0\u00a0System.out.print(&#8220;Enter the radius,please:&#8221;);<\/p>\n<p>15 \u00a0<\/p>\n<p>16 \u00a0\u00a0\u00a0\u00a0radius = circle.nextInt();<\/p>\n<p>17 \u00a0<\/p>\n<p>18 \u00a0\u00a0\u00a0\u00a0diameter=radius*2;<\/p>\n<p>19 \u00a0\u00a0\u00a0\u00a0circumference=diameter*pi;<\/p>\n<p>20 \u00a0\u00a0\u00a0\u00a0area=pi*(radius*radius);<\/p>\n<p>21 \u00a0<\/p>\n<p>22 System.out.printf( &#8220;diameter is %fn&#8221;,diameter);<\/p>\n<p>23 System.out.printf( &#8220;circumference is %fn&#8221;,circumference);<\/p>\n<p>24 System.out.printf( &#8220;area is %fn&#8221;,area);<\/p>\n<p>25 \u00a0<\/p>\n<p>26 \u00a0<\/p>\n<p>27 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/p>\n<p>28 \u00a0<\/p>\n<p>29 \u00a0<\/p>\n<p>30 \u00a0\u00a0\u00a0\u00a0}<\/p>\n<p>Explanation of the Solution <\/p>\n<p>The above codes offer the teacher an automatics way to get the results done with ease and to find answers to the problems. Once a dimensions are given the programs gives the answer.<\/p>\n<p>Lesson <\/p>\n<p>Working with codes simply means improving critical and abstract improvement of skills. Thus,  the above program was able to improve this skill. Thus, I noted that development of such programs is important in critical skills and analysis of concepts.  In addition, coming up with such programs via computational concepts is a unique way that opens up ones analysis skills.  The composing and integrating basic mathematical concepts among other useful tactics and coming up with such a program has much to be accounted for. This helped me to improve my analysis skills as well as not the most significant aspects of computer concepts.  I was able to understand how basic numerical skills could be used in programming.    <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Name Tutor Course Date Part A The problem to be solved The first program developed was only able to execute<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-44994","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter\" \/>\n<meta property=\"og:description\" content=\"Name Tutor Course Date Part A The problem to be solved The first program developed was only able to execute\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/\" \/>\n<meta property=\"og:site_name\" content=\"sheilathewriter\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-26T23:13:26+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/\",\"name\":\"The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter\",\"isPartOf\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\"},\"datePublished\":\"2024-04-26T23:13:26+00:00\",\"author\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\"},\"breadcrumb\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sheilathewriter.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The first program developed was only able to execute a command to calculate odd numbers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/\",\"name\":\"sheilathewriter\",\"description\":\"Custom essay writing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/opskill.com\/propapers\"],\"url\":\"https:\/\/sheilathewriter.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/","og_locale":"en_US","og_type":"article","og_title":"The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter","og_description":"Name Tutor Course Date Part A The problem to be solved The first program developed was only able to execute","og_url":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/","og_site_name":"sheilathewriter","article_published_time":"2024-04-26T23:13:26+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/","url":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/","name":"The first program developed was only able to execute a command to calculate odd numbers - sheilathewriter","isPartOf":{"@id":"https:\/\/sheilathewriter.com\/blog\/#website"},"datePublished":"2024-04-26T23:13:26+00:00","author":{"@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab"},"breadcrumb":{"@id":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sheilathewriter.com\/blog\/the-first-program-developed-was-only-able-to-execute-a-command-to-calculate-odd-numbers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sheilathewriter.com\/blog\/"},{"@type":"ListItem","position":2,"name":"The first program developed was only able to execute a command to calculate odd numbers"}]},{"@type":"WebSite","@id":"https:\/\/sheilathewriter.com\/blog\/#website","url":"https:\/\/sheilathewriter.com\/blog\/","name":"sheilathewriter","description":"Custom essay writing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/opskill.com\/propapers"],"url":"https:\/\/sheilathewriter.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/44994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/comments?post=44994"}],"version-history":[{"count":0,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/44994\/revisions"}],"wp:attachment":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/media?parent=44994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/categories?post=44994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/tags?post=44994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}