please help with my project since i do not want to fail

It keeps on saying that inches are not declared.

It's quite correct, in fact, it goes further, and gives you a clue, but you didn't post that bit of the error message.

What happened to the code tags?