CSC 216/s08/seek reconciliation: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
===The problem=== | ===The problem=== | ||
The exercise will illustrate the "State" programming paradigm through the floating point parser finite state machine discussed in class. | |||
===Participants and props=== | ===Participants and props=== | ||
4 students will participate. 3 for each "State" (Start, Decimal, Integer) and one to represent the "parser." Each person representing a state will hold up a piece of paper. On the front will be the name of that person's state. On the back will be the actions to perform based on the input given by the parser. Here are the instructions: | |||
====Start==== | |||
onPlus: | |||
onMinus: | |||
onDecimal: | |||
onInteger: | |||
====Decimal==== | |||
onPlus: | |||
onMinus: | |||
onDecimal: | |||
onInteger: | |||
====Integer==== | |||
onPlus: | |||
onMinus: | |||
onDecimal: | |||
onInteger: | |||
===The script=== | ===The script=== | ||
Describe how to do your exercise. | Describe how to do your exercise. |
Revision as of 18:46, 10 April 2008
Formatting Resources
Formatting Help Guide from MetaWiki
Place Title of Exercise Here
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.
The problem
The exercise will illustrate the "State" programming paradigm through the floating point parser finite state machine discussed in class.
Participants and props
4 students will participate. 3 for each "State" (Start, Decimal, Integer) and one to represent the "parser." Each person representing a state will hold up a piece of paper. On the front will be the name of that person's state. On the back will be the actions to perform based on the input given by the parser. Here are the instructions:
Start
onPlus:
onMinus:
onDecimal:
onInteger:
Decimal
onPlus:
onMinus:
onDecimal:
onInteger:
Integer
onPlus:
onMinus:
onDecimal:
onInteger:
The script
Describe how to do your exercise.