Hello, I'm supposedto write a program that checks to see if the file exists and displays the file contents. Additionally, three statistics need to be computed and displayed. The program needs to count the number of records, compute the meanAge and the meanGPA for each student.
Both meanAge and meanGPA need to be displayed rounded off to three digits beyond the decimal point.
Thisis what I have so far, and I'm wondering if I'm on the right track. I'm a little bit confused on how I can acess every other three lines and then either convert them to a double or int. When I run this program, it gives me a compile error. Any help will be greatly appreciated!