Download a ZIP'ed copy of the Lab 14 projects and store it in the C:\FILES directory.
Use PowerZip to extract the files to the C:\files directory. This should create a C:\files\lab14 directory with two subdirectories, Operate and Modify
Funky0
to Funky4
are set up to
receive an array of integers and return a single integer. The first routine is
already done. It adds up the elements of the array and returns the total.
Function | Operation |
---|---|
Funky0
| Adds all elements of the array and returns the total |
Funky1
| Returns the largest element of the array |
Funky2
| Returns the smallest element of the array |
Funky3
| Adds all the even elements of the array and returns the total |
Funky4
| Adds the smallest and largest elements of the array and returns their sum |
Funky0
to Funky4
are set up to
receive an array of integers. They return no values. The first routine
Funky0
adds one to each element of the array.
Function | Operation |
---|---|
Funky0
| Adds one to each element of the array |
Funky1
| Multiplies each element by three |
Funky2
| Sets all array elements to zero |
Funky3
| Sets the i 'th array element to i
|
Funky4
| Reverses the array, that is, switches the first and last elements, etc. |