FUNCTIONS AND SUBROUTINES--
Functions and subroutines are FOR TRANS subprograms. Most problems that require a computer program to solve them are two complex to sit down and work all the way through them in one go. using sub programs allows you to tackle bite size pieces of problem individually. Once each piece is working correctly you then put the pieces together to create the whole and subroutines, first write a main program that references all of the subprograms in the desired order and then start writing the subprograms . This is similar to composing an outline for an essay before writing the essay and will help keep you on track.
No comments:
Post a Comment