Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[QUIZ] Micrrowave Numbers (#118)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Karl von Laudermann, post: 4554853"] Unless I'm missing something (and I usually am), the problem with the last two examples is that the microwave will interpret "120" and "123" as 1:20 and 1:23 when typed in, not as a raw number of seconds. How the microwave interprets the number depends solely on whether the last two digits exceed 59. If they do, it's a number of seconds, otherwise it's minutes and seconds. Maybe there should be an additional requirement of the quiz: the program will never suggest the number of seconds representation, even when that's more efficient than the minutes and seconds representation, if the the number of seconds representation will be misinterpreted (i.e. the last two digits are 60 or greater). Actually, I'm not even convinced that a microwave would interpret e.g. "170" as 170 seconds, or 2:50. Perhaps 170 would be interpreted as one minute and 70 seconds? In other words, after counting down for 70 seconds, the display would read "1:00", and then proceed to 59 instead of 99, not remembering the 70 that it started with. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[QUIZ] Micrrowave Numbers (#118)
Top