I am taking a intro programming course currently. I am stumped by my current assignment. The program is suppose to do the following using functions only (no other code allowed in main):
1. Get data from an input file and put into a parallel array.
2. Find and display the high temp.
3. Find and display the low temp.
4. Calculate the average temp and display.
I am getting a run time error. Please give me some advice on what is going wrong.
I attached two files to this post. One is the source code (cityTemps) and the other is the input file (temperatures). Thanks a lot.