•Explain the difference between a function procedure and a sub procedure and dis
ID: 3734170 • Letter: #
Question
•Explain the difference between a function procedure and a sub procedure and discuss reasons why there are times when it is better to use a function procedure even though it would be possible to produce the desired results with sub procedures. •Explain the purpose of arrays in programming. Discuss aspects of arrays such as the reasons you would want to use them in programming, differences between one dimensional and two dimensional arrays. •Explain the difference between a function procedure and a sub procedure and discuss reasons why there are times when it is better to use a function procedure even though it would be possible to produce the desired results with sub procedures. •Explain the purpose of arrays in programming. Discuss aspects of arrays such as the reasons you would want to use them in programming, differences between one dimensional and two dimensional arrays. •Explain the difference between a function procedure and a sub procedure and discuss reasons why there are times when it is better to use a function procedure even though it would be possible to produce the desired results with sub procedures. •Explain the purpose of arrays in programming. Discuss aspects of arrays such as the reasons you would want to use them in programming, differences between one dimensional and two dimensional arrays. •Explain the difference between a function procedure and a sub procedure and discuss reasons why there are times when it is better to use a function procedure even though it would be possible to produce the desired results with sub procedures. •Explain the purpose of arrays in programming. Discuss aspects of arrays such as the reasons you would want to use them in programming, differences between one dimensional and two dimensional arrays. •Explain the difference between a function procedure and a sub procedure and discuss reasons why there are times when it is better to use a function procedure even though it would be possible to produce the desired results with sub procedures. •Explain the purpose of arrays in programming. Discuss aspects of arrays such as the reasons you would want to use them in programming, differences between one dimensional and two dimensional arrays.Explanation / Answer
Sub Procedure is procedure that performs some action.Function Procedure also perform some action but also returns some value.
when Functions returning values after processing are called as Functions while functions returning no value are called Sub Procedures.
Function Procedure may take an input if required while Sub Procedure never takes an input.
Function Procedure starts and ends with Function and End Function while Sub Procedure starts and ends with using Sub and End Sub.
The main difference between a function and a sub-procedure is that sub-procedures do not return a value while functions return a value.
function procedure is used When we creating applications,custom functions may help you minimize duplicated code.this may helps you to minimize errors.When we use functions procedure, you can write functions that perform operations otherwise it will be impossible.Function procedures can help you reduce your formulas.this formulas are easier to read and understand. Function procedures can be very helpful when developing large and critical projects.
b)
Array is collection of similar type value that are stored in sequential order.either in the form of Row and Coloum or used to store lists of related information.specific element in an array is accessed by a particular index of that array
we used array because it is Type safe and array can be declared as fixed length or dynamic. fixed length array can stored with predefined number of items while size of dynamic array increase as we add new items to the array
We use arrays many of the time in programming. Whenever you need to keep track of an ordered list of items, you will use an array like list of songs, a list of each keystroke a user clicks.
one dimensional array store the data in the form of Row where as two dimensional array are store the data in the form of row and coloum. two dimensional array is a collection of one dimensional array placed one below another,while one dimensional array is simple a collection of elements.one dimensional has only the length, but two dimensional has both the length and width.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.