Differences between version 2 and previous revision of ComputerScience.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Saturday, January 18, 2003 5:51:46 pm | by JohnMcPherson | Revert |
Older page: | version 1 | Last edited on Saturday, January 18, 2003 5:51:19 pm | by JohnMcPherson | Revert |
@@ -1,5 +1,5 @@
-This joke has been floating around the net for many years, seemed appropriate for this discussion
:
+This joke has been floating around the net for many years:
Once upon a time, in a kingdom not far from here, a king summoned two of his advisors for a test. He showed them both a shiny metal box with two slots in the top, a control knob, and a lever. "What do you think this is?"
One advisor, an engineer, answered first. "It is a toaster," he said. The king asked, "How would you design an embedded computer for it?" The engineer replied, "Using a four-bit microcontroller, I would write a simple program that reads the darkness knob and quantizes its position to one of 16 shades of darkness, from snow white to coal black. The program would use that darkness level as the index to a 16-element table of initial timer values. Then it would turn on the heating elements and start the timer with the initial value selected from the table. At the end of the time delay, it would turn off the heat and pop up the toast. Come back next week, and I'll show you a working prototype."