Practice 9
Main | Arrays | Practice 8 | Solution 8 | Associative Arrays | Practice 9 | Solution 9 | Regular Expressions | Practice 10 | Solution 10 | More Regular Expressions | Practice 11 | Solution 11 In this practice we will do the following:
In the sample code that you will be practicing on top of the function flip_it() is setup to return the array it takes as an argument by default. This simplified version of the function contains what is called a "stub". It is some code that makes a function return a value so that it doesn't get in the way while you are trying to write other functions. After you finish part one from the above start part two by removing the stub and making the function actually return an inverted array. The stub is commented out. To complete this exercise you must:
Note that in the bottom of the incomplete code there is code to test the functions. You don't need to edit that code. You only need to implement the functions.
jfulton [at] member.fsf.org
|