Question: 1. Write a function that takes three values as arguments. It should appends the first two characters in the first string, the middle three characters



1. Write a function that takes three values as arguments. It should appends the first two characters in the first string, the middle three characters of the second string, and the last two characters of the third string together. It should return a string. Example: passWord = passcode("Heider", "123456789", "Lab06" results in "he45606". Test to see that it works when the input is from a spreadsheet. For example: 2. Write a function named areEqual. It should accept two arrays of type Single, both of the same size, and it should return a boolean value indicating whether the two arrays are equal or not. It should return True if they are equal and False otherwise. For example, if you pass in the arrays (3,5,1) and (4,3,6) it should return False and the program should display a message indicating that two arrays are not equal. 3. Write a subroutine named TestMyFunctions that declares the two arrays you can hardcode the values in) and calls your arrayEqual function and displays the results. Write the results out to a worksheet cell. Your function should test that the two arrays have the same number of elements. Remember: A function only returns a value. Your function should not display any output but it should display an error message in case of the two arrays are not of equal size. The calling sub displays the results after the function is called and its value is returned. Note You have to use Button(s) on worksheet(s) to run the task(s) in this lab and all next labs. Marks will be deducted if you do not use buttons
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
