What are the three of the reasons programmers use independent Sub procedures?
What will be an ideal response?
List three:1. Avoid duplicating code: When different sections of a program need to perform the same task, you can enter the code in a procedure and then have each section call the procedure to perform its task when needed.2. Modify in only one place: If the task performed by an independent Sub procedure subsequently changes, you need to make the modification in only the procedure rather than in all of the sections that use the procedure.3. Make procedures easier to code and understand: If an event procedure performs many tasks, you can prevent the procedure's code from getting unwieldy and difficult to understand by assigning some of the tasks to one or more independent Sub procedures. Doing this makes the event procedure easier to code because it allows you to concentrate on one small piece of the code at a time.4. Allow a team of programmers to code the application: Independent Sub procedures areused extensively in large and complex applications, which typically are written by a team ofprogrammers. The team will break up the application's code into small and manageable tasks, and then assign some of the tasks to different team members to be coded as independent Sub procedures. Doing this allows more than one programmer to work on the application at the same time, decreasing the time it takes to complete the application.
You might also like to view...
A ________ analysis studies the relationship between fixed and variable costs, sales volume, and profits
A) Variable cost B) Cost-volume-prices C) Cost-volume-profit D) Cost-variable-profit
How does creating dimension in a photograph help to create the illusion of three dimensions in two-dimensional space?
What will be an ideal response?