please give a bourne script to this problem

Hello all,
I am new to unix and having the below problem.Any help will be appreciated.

Write a Bourn shell script dTOe which takes as an input any number
between 0 and 999 and prints the English value for this number. The
program should display an error message when a NOT digit value entered.

Sample:

$dTOe 234

TWO HUNDRED AND THIRTY FOUR

$dTOe 199

ONE HUNDRED AND NINETY NINE
Thanks in advance

See the rules:

(6) Do not post classroom or homework problems.