INTRODUCTION TO ARRAYS

CENG198

Grading Lab #4

Using Arrays with Functions; Write a function that will take an array of size 100 as an argument and will find the maximum and minimum number in the array along with their indices. The array should be filled with random numbers from 0-1000. The filling of the array will be done within the function. The print out of the numbers with their indices will also be done in the function. The function will not return anything.

Sample Run (This is only an example)

Max. Number: 965 Index: 4

Min. Number: 47 Index: 76