Good day:

We've just commenced our chapter on arrays. The way how it was presented just didn't click to me. The following is the assignment:

" Use a one-dimensional array to solve the following problem. Read in 1000 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it is not a duplicate of a number already read (and printed). Use the smallest possible array to solve this problem."

A few questions:

1. Since it's not practical to type down 1000 numbers in an 'inFile', would it be possible for me to use a randon number generator within the program?

2.Since it's obvious that the numbers will repeat (though dupilcates should not be printed out), I presume that loops will have to be used(according to my instructor)...but how can you use loops when there is no set condition to test statements by? (I hope I stated that correctly).

Any assistance is appreciated. I'll be posting my source code within 24-48 hrs, since i'll need to go read up on this array stuff.

Thanks.