{"id":5955,"date":"2020-11-14T12:48:57","date_gmt":"2020-11-14T12:48:57","guid":{"rendered":"http:\/\/onlineclassesguru.com\/?p=5955"},"modified":"2020-11-14T12:48:57","modified_gmt":"2020-11-14T12:48:57","slug":"programming-challenge-1-going-green","status":"publish","type":"post","link":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/","title":{"rendered":"Programming Challenge 1 \u2014 Going Green"},"content":{"rendered":"<style type=\"text\/css\"><\/style><p>This lab accompanies Chapter 8 of Gaddis, T. (2016). Starting out with programming logic and design (4th ed.). Boston, MA: Addison-Wesley.<\/p>\n<p>Lab 9.5 \u0096 Programming Challenge 1 \u2014 Going Green<\/p>\n<p>Write the Flowchart for the following programming problem based on the pseudocode below.<\/p>\n<p>Last year, a local college implemented rooftop gardens as a way to promote energy efficiency and save money. Write a program that will allow the user to enter the energy bills from January to December for the year prior to going green. Next, allow the user to enter the energy bills from January to December of the past year after going green. The program should calculate the energy difference from the two years and display the two years\u0092 worth of data, along with the savings.<\/p>\n<p>Hints: Create three arrays of size 12 each. The first array will store the first year of energy costs, the second array will store the second year after going green, and the third array will store the difference. Also, create a string array that stores the month names. These variables might be defined as follows:<\/p>\n<p>notGreenCost = [0] * 12<\/p>\n<p>goneGreenCost = [0] * 12<\/p>\n<p>savings = [0] * 12<\/p>\n<p>months = [\u2018January\u2019, \u2018February\u2019, \u2018March\u2019, \u2018April\u2019, \u2018May\u2019, \u2018June\u2019, \u2018July\u2019, \u2018August\u2019, \u2018September\u2019, \u2018October\u2019, \u2018November\u2019, \u2018December\u2019]<\/p>\n<p>Your sample output might look as follows:<\/p>\n<p>Enter NOT GREEN energy costs for January<\/p>\n<p>Enter now \u2013&gt;789<\/p>\n<p>Enter NOT GREEN energy costs for February<\/p>\n<p>Enter now \u2013&gt;790<\/p>\n<p>Enter NOT GREEN energy costs for March<\/p>\n<p>Enter now \u2013&gt;890<\/p>\n<p>Enter NOT GREEN energy costs for April<\/p>\n<p>Enter now \u2013&gt;773<\/p>\n<p>Enter NOT GREEN energy costs for May<\/p>\n<p>Enter now \u2013&gt;723<\/p>\n<p>Enter NOT GREEN energy costs for June<\/p>\n<p>Enter now \u2013&gt;759<\/p>\n<p>Enter NOT GREEN energy costs for July<\/p>\n<p>Enter now \u2013&gt;690<\/p>\n<p>Enter NOT GREEN energy costs for August<\/p>\n<p>Enter now \u2013&gt;681<\/p>\n<p>Enter NOT GREEN energy costs for September<\/p>\n<p>Enter now \u2013&gt;782<\/p>\n<p>Enter NOT GREEN energy costs for October<\/p>\n<p>Enter now \u2013&gt;791<\/p>\n<p>Enter NOT GREEN energy costs for November<\/p>\n<p>Enter now \u2013&gt;898<\/p>\n<p>Enter NOT GREEN energy costs for December<\/p>\n<p>Enter now \u2013&gt;923<\/p>\n<p>Completethe Lab 9-5, \u201cProgramming Challenge 1 \u2014 Going Green,\u201d ofStarting Out with Programming Logic and Design.<\/p>\n<p>Note:You are only required to create the flowchart for this activity; however, notice how the pseudocode compares to the given Python code for this assignment.<\/p>\n<p><center><a href=\"http:\/\/onlineclassesguru.com\/orders\/ordernow\"><img decoding=\"async\" src=\"https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcTyj99p60XCLyLk1htB7-1neRt8-2QdnenNlQ&usqp=CAU\"target=\"_http:\/\/onlineclassesguru.com\/orders\/ordernow\"\/><\/center><p>","protected":false},"excerpt":{"rendered":"<p>This lab accompanies Chapter 8 of Gaddis, T. (2016). Starting out with programming logic and design (4th ed.). Boston, MA: Addison-Wesley. Lab 9.5 \u0096 Programming Challenge 1 \u2014 Going Green Write the Flowchart for the following programming problem based on the pseudocode below. Last year, a local college implemented rooftop gardens as a way to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5955","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Programming Challenge 1 \u2014 Going Green - onlineclassesguru<\/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:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Programming Challenge 1 \u2014 Going Green - onlineclassesguru\" \/>\n<meta property=\"og:description\" content=\"This lab accompanies Chapter 8 of Gaddis, T. (2016). Starting out with programming logic and design (4th ed.). Boston, MA: Addison-Wesley. Lab 9.5 \u0096 Programming Challenge 1 \u2014 Going Green Write the Flowchart for the following programming problem based on the pseudocode below. Last year, a local college implemented rooftop gardens as a way to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/\" \/>\n<meta property=\"og:site_name\" content=\"onlineclassesguru\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-14T12:48:57+00:00\" \/>\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_admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineclassesguru.com\/#website\",\"url\":\"https:\/\/onlineclassesguru.com\/\",\"name\":\"onlineclassesguru\",\"description\":\"Cheap Professional coursework and reaction papers help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineclassesguru.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#webpage\",\"url\":\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/\",\"name\":\"Programming Challenge 1 \\u2014 Going Green - onlineclassesguru\",\"isPartOf\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#website\"},\"datePublished\":\"2020-11-14T12:48:57+00:00\",\"dateModified\":\"2020-11-14T12:48:57+00:00\",\"author\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineclassesguru.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programming Challenge 1 \\u2014 Going Green\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\",\"name\":\"admin_admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/onlineclassesguru.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"caption\":\"admin_admin\"},\"url\":\"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Programming Challenge 1 \u2014 Going Green - onlineclassesguru","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:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/","og_locale":"en_US","og_type":"article","og_title":"Programming Challenge 1 \u2014 Going Green - onlineclassesguru","og_description":"This lab accompanies Chapter 8 of Gaddis, T. (2016). Starting out with programming logic and design (4th ed.). Boston, MA: Addison-Wesley. Lab 9.5 \u0096 Programming Challenge 1 \u2014 Going Green Write the Flowchart for the following programming problem based on the pseudocode below. Last year, a local college implemented rooftop gardens as a way to...","og_url":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/","og_site_name":"onlineclassesguru","article_published_time":"2020-11-14T12:48:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin_admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/onlineclassesguru.com\/#website","url":"https:\/\/onlineclassesguru.com\/","name":"onlineclassesguru","description":"Cheap Professional coursework and reaction papers help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineclassesguru.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#webpage","url":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/","name":"Programming Challenge 1 \u2014 Going Green - onlineclassesguru","isPartOf":{"@id":"https:\/\/onlineclassesguru.com\/#website"},"datePublished":"2020-11-14T12:48:57+00:00","dateModified":"2020-11-14T12:48:57+00:00","author":{"@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742"},"breadcrumb":{"@id":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/14\/programming-challenge-1-going-green\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineclassesguru.com\/"},{"@type":"ListItem","position":2,"name":"Programming Challenge 1 \u2014 Going Green"}]},{"@type":"Person","@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742","name":"admin_admin","image":{"@type":"ImageObject","@id":"https:\/\/onlineclassesguru.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","caption":"admin_admin"},"url":"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/5955"}],"collection":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/comments?post=5955"}],"version-history":[{"count":1,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/5955\/revisions"}],"predecessor-version":[{"id":5956,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/5955\/revisions\/5956"}],"wp:attachment":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/media?parent=5955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/categories?post=5955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/tags?post=5955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}