Political Robot (due Monday Sept 22, in class)

A company is asked to design a computer system to replace politicians, and, after a brief analysis, decides that this can be achieved reliably with a 7 bit special purpose processor.

The system must be able to represent the following states:

Voter, Reporter, TV camera, Party member, Question, Smile, Promise, Give money, Take money

You are asked to design an appropriate representation of these states with 7 bits. Keep in mind that the system will be used to perform the following actions:

Voter + Question →Promise

Reporter + Question →Promise

Reporter + TV Camera →Smile

Voter + Smile →Take money

Party member + Smile →Give money