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 names and continue until they enter "-989" 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.