Arrays 5 - firstempty


examples


Classwork

In a text document:

Think about variable names and types.

1.Assume you have a module tempList() that returns a partially filled array of temperatures and a module tempEmpty() that returns the first empty index in that array. Ask the user to enter temperatures and for each one they add, put it in the list, continuing until they enter "-989" or the array runs out of space.
If the user enters a temperature that goes at index 99 in the array, and the temperature is outside the range 50-90, tell them you're sorry there wasn't nice weather for the 100th day celebration.