Tags: %TAGME{ tpaction="" web="SCMP118" tag="" }% view all tags

# Hands On Arrays 2

### Goal

Sorting Arrays and 2 dimensional arrays Arrays with Function calls

### Step 1

1. Create a function to enter a list of up to 25 quiz scores in array. A negative number indicates the end.
2. Create a function to print the grade list back out.
3. Write a main program to do the two functions above

### Step 2

1. Create a function to remove the low score of an array
2. Enter the scores
3. remove the two lowest grades.
4. Print the reduced list back out.

### Step 3

1. Create a function "void lowest(int a[], int start, int size)" to scan from the ith position in an array to the end of the array, returning the index the lowest entry in the range.
2. Create a function "void sort(int a[], int size)" to use the lowest function to scan through each element in the array, swapping the ith lowest value into the ith position.
3. Use the routines from earlier to test the sort function
Edit | Attach | Watch | Print version |  | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2017-10-02 - JimSkon

 Home SCMP118 Web P View Edit Account
 Edit Attach
Copyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback