Code:
echo "ID: $1 Date: $2 /n/n
-------------------------------------------------/n
| Task | Result | Time |/n
-------------------------------------------------/n
| $3 | $4 | $5 |/n
| | | |/n
-------------------------------------------------/n/n
AD No: $6 Generated Date: $2 "
You can start with some simple bash like this and perhaps combine sed and gawk.
Then you sh program.sh p1 p2 p3 p4 p5 p6 > result.txt
where p are the parameters or you can chmod a+x program.sh and just ./program.sh p1 p2 p3 p4 p5 p6 > result.txt
I get the feeling that this is homework.