Shell programming

While executing a shell script either login name or UID is supplied at command prompt. Write a shell script to find out at how many terminals has this user logged in. Write a shell script which reports names and sizes of all files in a directory ( directory name would be supplied as an argument ) whose size exceeds 1000 bytes. ................
................