Arrays 5 - firstempty


examples


Classwork

In a text document:

Think about variable names and types.

1.Assume you have a module nameList() that returns a partially filled array of names and a module namesEmpty that returns the first empty index in that array. Ask the user to enter names and continue until they enter "QUIT" If the user enters a name that goes at index 42 in the array, tell them that that name is the lucky winner for the day.