You are using your for loop to iterate through an array with only one value. Remember that array elements always start their numbering with 0, change line #35 to:
for (k = 0; k < maxCustomerNumber; k++) {
If you over-run the end of your array as in your code, you get unexpected results.