Hey so I need help with a script that i need to make for my class and i cant figure out how to do it...

I need to program a calculator of wind direction where each wind direction is assigned a different numerical value:

N-2
W-10
E-1
S-4

There would need to be a space to input the wind direction and then it would output the numerical value assigned to it.

if you can help it would be awesome thanks!

Mark