Name: ____________________________________________________ Alpha: _____________________

Using JFLAP, construct (and test!) a machine that reads in a string over the alphabet {a,b}, erases it, and prints a "1" on the tape if its length is odd and a "0" if its lenth is even. For example, if "aabba" is on the tape when the machine starts, just "1" should be on the tape when the machine halts.