Please read our
rules
note in particular:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.
(6) Do not post classroom or homework problems.
I have combined your two threads. For posterity, the title of the other thread was "need help scripting!".
It looks like you started the second one after admitting in the first thread that this was a class assignment. If this assignment is too difficult for you, then you need to discuss that with your instructor.