My guess is you're supposed to enter as many numbers as in the file, right? So after you read the file, set up another loop and input the numbers into another array. Now your float value [1] will correspond to entered integer [1].
Now, set up a loop to process each float.
Inside that loop, another loop to process the corresponding integer value.That should do it.
And PLEASE fix your Formatting -- it's terrible.
You are right, the user should enter the number as many as number in the file.
Thank for the suggestion, kind hard to catch up for a novice like me. I think this novice situation, explained a lot my formatting terrible, i will learn to fix it. Thank WaltP :)