{"id":2709,"date":"2023-02-19T18:36:32","date_gmt":"2023-02-19T18:36:32","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/help-me-understand-this-metric-conversion-program-using-java-language\/"},"modified":"2023-02-19T18:36:32","modified_gmt":"2023-02-19T18:36:32","slug":"help-me-understand-this-metric-conversion-program-using-java-language","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/help-me-understand-this-metric-conversion-program-using-java-language\/","title":{"rendered":"Help me understand this Metric Conversion program using JAVA LANGUAGE"},"content":{"rendered":"<div class=\"col-sm-12 messageContent\"><b>Learning Goal: <\/b>I&#8217;m working on a java presentation and need guidance to help me learn.<\/p>\n<p>Hello! I have my first java software oral exam coming up soon and will be asked questions and evaluated regarding this Metric Conversions (attached). Basically, I need help understanding the program in terms of the java language.<\/p>\n<p>I need guidance and an explanation of how this code works and USE JAVA TERMS\/LANGUAGE to explain this code (&#8220;______ is a reference that points to an object from class ______&#8221;, &#8220;this _____ object is created in order to call the _____ constructor in order to&#8230;.&#8221;, &#8220;this variable is declared final because so&#8230;.&#8221;, &#8220;this variable is declared as local because&#8230;&#8221;, etc.).<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<strong>Possible questions I could be asked:<\/strong><\/p>\n<p>&#8211; Definitions of the Java terms shown in the program<br \/><strong><\/strong><\/p>\n<p>&#8211; Why did they choose to use this data structure\/control structure etc&#8230;? (EX: Why did they decide to an if-else loop\/switch statement structure\/do-while loop for this part?)<\/p>\n<p>&#8211; What is happening in this structure? (EX: what is happening in <code><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">static<\/span> <span class=\"hljs-type\">double<\/span> <span class=\"hljs-title function_\">convert<\/span><span class=\"hljs-params\">(String fromUnit, String toUnit, <span class=\"hljs-type\">double<\/span> value)<\/span><\/code>)<\/p>\n<p>&#8211; Instead of this structure, how would you change this program to also do &#8230;?<\/p>\n<p>&#8211; What could you have done differently with this program to execute the same output? (EX: instead of this do-while structure, what could you have also done?, Instead of this switch-structure, what could you also have done?, etc.)<\/p>\n<p>&#8211; What would happen if you made the following change?<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learning Goal: I&#8217;m working on a java presentation and need guidance to help me learn. Hello! I have my first java software oral exam coming up soon and will be asked questions and evaluated regarding this Metric Conversions (attached). Basically, I need help understanding the program in terms of the java language. I need guidance [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[654],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/2709"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=2709"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/2709\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=2709"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=2709"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=2709"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=2709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}