Okay so you have neither responded to Stefano nor I, Noel correctly.
Since its a homework, you also have to read.
You need to have functions to perform specific tasks.
You shall need switch statements to control your program execution.
for learning, run the following as root.
Code:
find /etc/ -type f -iname "*.sh" | xargs cat | less
simply learn how the bash functions are written and invoked.
BASH Programming - Introduction HOW-TO
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html
From Power Up To Bash Prompt
http://tldp.org/LDP/abs/html/index.html [ read after finishing the above guides]
Goodluck