Consequence Of Considerations III
The figureTax computation can be either a function or a procedure. Either way, it takes the subTotal as an actual parameter, and uses a formal parameter, say sT, in the definition
If figureTax is a procedure it will also need a parameter, say tax, to pass the value back to the main program
Function figureTax (sT As Single) As Single
The figureTax procedure is needed to compute the sales
tax from the subTotal … this is simply 0.086*subTotal
Sub figureTax (sT, tax As Single, tax)