{"id":378,"date":"2022-02-03T21:41:12","date_gmt":"2022-02-03T21:41:12","guid":{"rendered":"http:\/\/miriamposner.com\/classes\/is270w22\/?page_id=378"},"modified":"2022-02-03T21:41:25","modified_gmt":"2022-02-03T21:41:25","slug":"homework-4","status":"publish","type":"page","link":"https:\/\/miriamposner.com\/classes\/is270w22\/homework-4\/","title":{"rendered":"Homework 4"},"content":{"rendered":"\n<p>Due Friday, February 11, at 9 am<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/bruinlearn.ucla.edu\/courses\/76668\/assignments\/958885\" target=\"_blank\" rel=\"noreferrer noopener\">On BruinLearn<\/a>, answer the following questions:<\/strong><\/p>\n\n\n\n<p>1. Explain, in your own words, what <a href=\"https:\/\/colab.research.google.com\/drive\/1aklSjApTU4TnjroncNXRZYQeMZJ-3GqN?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">this program<\/a> is doing.<\/p>\n\n\n\n<p>2. I want to write a program that does the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Asks me if I&#8217;m hungry.<\/li><li>If I am, it says, &#8220;You better eat, then!&#8221;<\/li><li>If I&#8217;m not, it says, &#8220;Never mind!&#8221;<\/li><\/ul>\n\n\n\n<p>Which of the three basic <a href=\"https:\/\/docs.oracle.com\/cd\/A58617_01\/server.804\/a58236\/03_struc.htm\" target=\"_blank\" rel=\"noreferrer noopener\">control structures<\/a> must I include?<\/p>\n\n\n\n<p>3. Consider this statement:<\/p>\n\n\n\n<p><code>round(52.7)<\/code><\/p>\n\n\n\n<p>Which is the function? Which is the argument?<\/p>\n\n\n\n<p>4. <a href=\"https:\/\/colab.research.google.com\/drive\/108qH8IZpNjPSVI10HVnOCqgnT3yCsIRS?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">This program<\/a> generates an error. Why? What must I do to fix it?<\/p>\n\n\n\n<p>5. What, in your own words, are <strong>comparison operators<\/strong>? Why would you use them?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due Friday, February 11, at 9 am On BruinLearn, answer the following questions: 1. Explain, in your own words, what this program is doing. 2. I want to write a&hellip; <a class=\"more-link\" href=\"https:\/\/miriamposner.com\/classes\/is270w22\/homework-4\/\">Continue reading <span class=\"screen-reader-text\">Homework 4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","footnotes":""},"class_list":["post-378","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/pages\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":0,"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/pages\/378\/revisions"}],"wp:attachment":[{"href":"https:\/\/miriamposner.com\/classes\/is270w22\/wp-json\/wp\/v2\/media?parent=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}