index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 2 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 8 61 53 80 7 90 45 96 73 69 72 88 79 98 42 72 37 33 73 46 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 1 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 2 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 33 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 3 Enter length of shift, 1 to 19: 1 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 before: 33 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 after: 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 33 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 33 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 3 Enter length of shift, 1 to 19: 19 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 before: 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 33 after: 33 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 33 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 4 The mean value is: 50.05 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 33 20 83 47 1 10 64 28 82 72 48 79 94 89 4 6 43 86 50 62 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 5 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 94 89 86 83 82 79 72 64 62 50 48 47 43 33 28 20 10 6 4 1 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 6 Enter a number to find: 48 Found at location: 11 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 94 89 86 83 82 79 72 64 62 50 48 47 43 33 28 20 10 6 4 1 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 6 Enter a number to find: 15 Not found. index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 94 89 86 83 82 79 72 64 62 50 48 47 43 33 28 20 10 6 4 1 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 7 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 before: 94 89 86 83 82 79 72 64 62 50 48 47 43 33 28 20 10 6 4 1 after: 1 4 6 10 20 28 33 43 47 48 50 62 64 72 79 82 83 86 89 94 index: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 values: 1 4 6 10 20 28 33 43 47 48 50 62 64 72 79 82 83 86 89 94 Options: 1) reset array to all 0s 2) fill array with random numbers 3) shift values 4) compute mean value 5) sort 6) find a number 7) reverse array 8) exit Your choice: 8