Help with a shell script

Hi all

looking for help with the following question please!

write a shell script that produces a zipped-tar version of any input directory canned 'dir-name, whereby ‘dir_name’ represents the relative directory name not the absolute directory name. the output should be sent to /tmp or a floppy device and should be of the form, dir_name.tar.gz

now i know how to start with the script but the zipped bit has thrown me.

help please, im a real novice at this.

!#/bin/bash
tar cfz /tmp/$1.tgz $1

Or to floppy;

!#/bin/bash
tar cfz - $1 > /dev/fd0