Results 1 to 2 of 2
Thread: help me please
- 10-14-2012, 11:10 AM #1Member
- Join Date
- Sep 2012
- Rep Power
help me please
i need to find the sum and average for a set of uncounted set of test scores via loops. The last number in the data will be zero and should not be processed. Pretend that you were given an external file that had the numbers below AND a zero then 4 more numbers.But, you have to do this via file input and not n=by just typing the numbers in(lets say the files name is"rt54.txt"
Also, it should look like the following once completed:
The sum of the numbers = 97
The number of scores = 10
The average of the numbers = 9.7
First of all, how can i make it stop looping so that the last number in the data will be zero and should not be processed?
- 10-14-2012, 04:54 PM #2