{"id":21788,"date":"2021-11-26T20:27:31","date_gmt":"2021-11-26T20:27:31","guid":{"rendered":"https:\/\/academicwritersbay.com\/answers\/flowchart-and-pseudocode\/"},"modified":"2021-11-26T20:27:31","modified_gmt":"2021-11-26T20:27:31","slug":"flowchart-and-pseudocode","status":"publish","type":"post","link":"https:\/\/academicwritersbay.com\/answers\/flowchart-and-pseudocode\/","title":{"rendered":"flowchart and pseudocode."},"content":{"rendered":"<p><span><strong>The following exercise will allow students to understand how to create a flowchart and pseudocode.<br \/><\/strong><\/span><\/p>\n<p><span>Draw a flowchart and write the pseudocode that describes how to prepare a cup of coffee. Include at least two decisions and two loops.<\/span><\/p>\n<p><span>The flowchart can be created using Microsoft Word. Before using a different application please discuss with the instructor.<\/span><\/p>\n<p><span>Submit your assignment to this assignment area.<\/span><\/p>\n<p><span>See the attached document for an example of how your assignment should look.<\/span><\/p>\n<p><span><br \/><\/span><\/p>\n<p><span><br \/><\/span><\/p>\n<p><span><strong>PART II. Variables and Methods<\/strong><\/span><\/p>\n<p><span><strong>Class variables:<\/strong><\/span><\/p>\n<p><span><span>These are also known as<\/span><span><span class=\"apple-converted-space\"><span>\u00a0<\/span><\/span><\/span><em><span>static member variables<\/span><\/em><span><span class=\"apple-converted-space\"><span>\u00a0<\/span><\/span><\/span><span>and there\u2019s only one copy of that variable that is shared with all instances of that class. If changes are made to that variable, all other instances will see the effect of the changes.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span>\/\/ INSTANCE VARIABLE<\/span><\/p>\n<p><span><span>public<\/span><span>\u00a0<\/span><span>class<\/span><span>\u00a0<\/span><span>Main<\/span><span>\u00a0{<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><span><\/span><span>public<\/span><span>\u00a0<\/span><span>static<\/span><span>\u00a0<\/span><span>void<\/span><span>\u00a0main(<\/span><span>String<\/span><span>[] args) {<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><span><\/span><span>Product<\/span><span>\u00a0prod1 =\u00a0<\/span><span>new<\/span><span>\u00a0<\/span><span>Product<\/span><span>();<\/span><\/span><\/p>\n<p><span><span>prod1.<\/span><span>Barcode<\/span><span>\u00a0=\u00a0<\/span><span>123456<\/span><span>;<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><span><\/span><span>Product<\/span><span>\u00a0prod2 =\u00a0<\/span><span>new<\/span><span>\u00a0<\/span><span>Product<\/span><span>();<\/span><\/span><\/p>\n<p><span><span>prod2.<\/span><span>Barcode<\/span><span>\u00a0=\u00a0<\/span><span>987654<\/span><span>;<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><span><\/span><span>System<\/span><span>.out.println(prod1.<\/span><span>Barcode<\/span><span>);<\/span><\/span><\/p>\n<p><span><span><\/span><span>System<\/span><span>.out.println(prod2.<\/span><span>Barcode<\/span><span>);<\/span><\/span><\/p>\n<p><span>}<\/span><\/p>\n<p><span>}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><span>public<\/span><span>\u00a0<\/span><span>class<\/span><span>\u00a0<\/span><span>Product<\/span><span>\u00a0{<\/span><\/span><\/p>\n<p><span><span><\/span><span>public<\/span><span>\u00a0<\/span><span>int<\/span><span>\u00a0<\/span><span>Barcode<\/span><span>;<\/span><\/span><\/p>\n<p><span>}<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span><strong><span>Identify the error in the code and correct it so the program runs correctly. Please provide a screenshot of your results in your assignment Word doc<\/span><\/strong><\/span><\/p>\n<p>\u00a0<\/p>\n<p><strong>INSTRUCTIONS:<\/strong>\u00a0Using an online Programming Text Editor and Compiler from Coding Ground at\u00a0https:\/\/www.tutorialspoint.com\/compile_java_online.php<span class=\"screenreader-only\">\u00a0(Links to an external site.)<\/span>, enter and run the following program. Take a screenshot of your results. You will need to change your code so that the results will display \u201cYour name and the name of your Class: for example, \u201cJane Doe, 1S122 Programming Logic.\u201d Take a screenshot of the updated code and your result display. Insert your screenshots in your assignment Word doc and SUBMIT in this assignment area.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following exercise will allow students to understand how to create a flowchart and pseudocode. Draw a flowchart and write the pseudocode that describes how to prepare a cup of coffee. Include at least two decisions and two loops. The flowchart can be created using Microsoft Word. Before using a different application please discuss with &#8230; <a title=\"flowchart and pseudocode.\" class=\"read-more\" href=\"https:\/\/academicwritersbay.com\/answers\/flowchart-and-pseudocode\/\" aria-label=\"Read more about flowchart and pseudocode.\">Read more<\/a><\/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-21788","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts\/21788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/comments?post=21788"}],"version-history":[{"count":0,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/posts\/21788\/revisions"}],"wp:attachment":[{"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/media?parent=21788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/categories?post=21788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/academicwritersbay.com\/answers\/wp-json\/wp\/v2\/tags?post=21788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}