To start, I'm a beginner, so I apologize in advance. I'm trying to write a program that reads 2 sets of number form a file (int id, int calls)and sorts them into eastCalls and westCalls. The file presents the numbers as such
I want my final output to file to look something like this like this.
WEST CALLS: EAST CALLS:
200 500
300 600
400 700
= 900 = 1800
Right now its just reading the last number which is 5000. My screen output is set up how I would want it with the switch statement , but its reading 0 for westCalls, and 5000 for eastCalls. I know that I haven't really started going in the right direction for the output. Any help would be greatly appreciated.