Subprograms are usually small in size, which means they are easier to write, test and debug than programs. They are also easy for someone else to understand. Subprograms can be saved separately as ...
Many programs take input from a user and then validate it before it is processed. It is important that the messages to the user are appropriate to reduce the risk of invalid data being entered.