Problems completing programming for electronic foosball arduino project

switch (i)
      case :0;

How closely have you been working with a C language instructor?

outtput=(i,BIN);

That will account for the missing "outputt".
What is that line supposed to do?

 }  }
              String result;
 }

I hate it when that happens.
Did you mean to use a "return"?