Creating simple shell program

Hi, I'm new to UNIX shell programming... can anyone help in doing the following :

1) create a text file named "Model File" having following columns :
Name Number Physics Chemistry
2) prompt user to n rows enter the name, number, physics ,chemistry
3) display the entire columns and rows entered
4) We should be able to find following values also :

a. First mark in physics.
b. First rank candidate
c. Last rank candidate
d. Which subject the students scored first mark.

Please do not post homework or school work on this forum.Thread closed.