Download a ZIP'ed copy of the Lab 13 projects and store it in the C:\FILES directory.
Go into the MS-DOS prompt and execute the following commands:
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. |