{"id":28963,"date":"2016-01-31T14:21:53","date_gmt":"2016-01-31T20:21:53","guid":{"rendered":"http:\/\/sercho93.wordpress.com\/?p=125"},"modified":"2016-01-31T15:10:13","modified_gmt":"2016-01-31T21:10:13","slug":"temperature-5","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/01\/temperature-5\/","title":{"rendered":"Temperature"},"content":{"rendered":"<p>Hi!<\/p>\n<p>Welcome again. Now I made a code using temperature.<\/p>\n<p>Instructions:<\/p>\n<blockquote>\n<p>Write a program that will prompt the user for a temperature in Fahrenheit and then convert it to Celsius. You may recall that the formula is C = 5 \u2217 (F \u2212 32)\/9.<\/p>\n<p>Modify the program to state whether or not water would boil at thetemperature given. Your output might look like the following.<\/p>\n<\/blockquote>\n<p>And this is the Code:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-131\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/01\/6f1966a37beb27374a6c628f9f8d79a1.jpg\" alt=\"temp\"   \/><\/p>\n<p>The main point is to convert Fahrenheit degrees to Celsius degrees. We all know that simple formula to convert the degrees:\u00a0C = 5 \u2217 (F \u2212 32)\/9.<\/p>\n<p>Steps:<\/p>\n<ol>\n<li>Ask to the user to write the Celsius degrees (remember to save the variable with CIN).<\/li>\n<li>Use the formula in a way the computer can understand and the computer is going to convert the degrees.<\/li>\n<li>Show the Celsius Degrees.<\/li>\n<\/ol>\n<p>Now I&#8217;m going to introduce IF and ELSE.<\/p>\n<p>We use IF and ELSE to\u00a0compare two or more sets of data and tests the results. If the results are true, the THEN instructions are taken; if not, the ELSE instructions are taken. (<a href=\"http:\/\/www.pcmag.com\/encyclopedia\/term\/44748\/if-then-else\" rel=\"nofollow\">http:\/\/www.pcmag.com\/encyclopedia\/term\/44748\/if-then-else<\/a>).<\/p>\n<p>In this case IF temperature is more than 100\u00b0 Celsius it will show up a message (&#8220;El agua hierve a esta temperatura&#8221;). BUUUUUT IF NOT it will show you another message (&#8220;El agua no hierve a esta temperatura&#8221;).<\/p>\n<p>The basic structure is:<\/p>\n<blockquote>\n<p>If (condition)<\/p>\n<p>{ make this }<\/p>\n<p>else<\/p>\n<p>{ make this }<\/p>\n<\/blockquote>\n<p>It isn&#8217;t really difficult. I have some knowledge of this because I took a course of an introduction to code.<\/p>\n<p>Thanks for coming! See you later.<\/p>\n<blockquote>\n<p>Code Link:<\/p>\n<p><a href=\"https:\/\/www.dropbox.com\/s\/5nynn2ucy8pluf3\/Temperature.cpp?dl=0\" rel=\"nofollow\">https:\/\/www.dropbox.com\/s\/5nynn2ucy8pluf3\/Temperature.cpp?dl=0<\/a><\/p>\n<\/blockquote>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/sercho93.wordpress.com\/125\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/01\/6fa7383859e038d2f2611dfa34832fa1.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/01\/aec71013b1019598c87605d6b64de856.jpg#038;blog=105346610&#038;%23038;post=125&#038;%23038;subd=sercho93&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi! Welcome again. Now I made a code using temperature. Instructions: Write a program that will prompt the user for a temperature in Fahrenheit and then convert it to Celsius. You may recall that the formula is C = 5 \u2217 (F \u2212 32)\/9. Modify the program to state whether or not water would boil &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/01\/temperature-5\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Temperature<\/span><\/a><\/p>\n","protected":false},"author":36,"featured_media":28975,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[84],"class_list":["post-28963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-wsq05"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/28963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=28963"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/28963\/revisions"}],"predecessor-version":[{"id":28980,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/28963\/revisions\/28980"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/28975"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=28963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=28963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=28963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}