I guess all the 10 locations are not getting populated. First location gets populated and then it asks the player to enter the number, then in next iteration the second location gets populated and it...