{"id":353,"date":"2010-06-23T19:56:25","date_gmt":"2010-06-24T03:56:25","guid":{"rendered":"http:\/\/www.pagetable.com\/?p=353"},"modified":"2010-06-23T19:56:25","modified_gmt":"2010-06-24T03:56:25","slug":"how-much-change-is-in-a-vending-machine","status":"publish","type":"post","link":"https:\/\/www.pagetable.com\/?p=353","title":{"rendered":"How much change is in a vending machine?"},"content":{"rendered":"<p>There is only one way to find out &#8211; all you need is <a href=\"http:\/\/www.pagetable.com\/?p=149\">a giant pile of money<\/a> and a vending machine that sells soda for $1.25: If you put in a dollar note and press the &#8220;return change&#8221; button, you will get the dollar note back directly. If you put in two dollar notes (the maximum it takes) at a time, it will give you change for the two dollars.<\/p>\n<p>Our machine had $29 of change. It started out with 25&cent; coins, and after a while returned a combination of different coins (25&cent; &amp; 10&cent;, then 10&cent; &amp; 5&cent;), finally switching to all 5&cent; coins at the end.<\/p>\n<p>In total, it had<\/p>\n<ul>\n<li>25&cent; x 57 = $14.25<\/li>\n<li>10&cent; x 114 = $11.40<\/li>\n<li>5&cent; x 67= $3.35<\/li>\n<\/ul>\n<p>After this, the machine refused to take bills, so it was either full with bills or, more likely, out of change.<\/p>\n<p>But actually, it might still contain up to 95&cent; of change &#8211; today&#8217;s homework is to find out how to measure the remaining change in the machine!<\/p>\n<p><img decoding=\"async\" src=\"\/docs\/change\/change.jpg\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is only one way to find out &#8211; all you need is a giant pile of money and a vending machine that sells soda for $1.25: If you put in a dollar note and press the &#8220;return change&#8221; button, you will get the dollar note back directly. If you put in two dollar notes &#8230; <a title=\"How much change is in a vending machine?\" class=\"read-more\" href=\"https:\/\/www.pagetable.com\/?p=353\" aria-label=\"Read more about How much change is in a vending machine?\">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":[17,26],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-hacks","category-puzzle"],"_links":{"self":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":0,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pagetable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}