i've made the final draft of the program its the same as the one posted in post #15
only i've changed the return type of main to int and added the statement
return 0;
at the end.
i feel that it has improved since i've started this thread.
Thanks, everyone who has helped!
And Happy New Year to all.