Help with script

Hello. I need to create a script that will allow the following on AIX:

  1. cd to specific directory
  2. chmod -R 777 the entire directory
  3. Replace any <space> in file names with _

What did you try so far? You got nearly all commands already at hands. Is this homework or classroom stuff?