Lab 9 Arrays and Searching When we need to work with many variables of the same type, arrays are convenient. For example, suppose we want to examine 10 integers and see which one is the largest. The subscripts, however, start at 0 and end at a number 1 less than the value inside the brackets. Arrays subscripts are always like this.
Arrays are easy to work with too.
In the sample program, we will enter 10 numbers and find the largest one. This process would be lengthy and difficult to understand if we had declared 10 variables without using an array structure. Lab 8 Modify the sample program below so that it reads in 5 floating point numbers, finds the smallest and the largest numbers, then prints out the results.