It looks like homework. What have you tried so far? What is not clear? Take a look at
and you will find all the answers. For example to turn off interactive prompting when doing multiple file transfer you can try the -i option. Consider that in a script you can pass all the ftp commands as standard input. To do this use a so called "here document". Looking at the man page you can easily find the answer to the last question, which is maybe a "trick" unknown to a lot of people.