Working on a school assignment, and I've reached a bit of an impasse.
I'm inputting data from a text file, running a name and 6 different double numbers. Each name and all the numbers are outputted, while determining the person's final score (numbers are scores, obv). Also, it's supposed to determine the highest final score.
I'm using a for loop to get their name, which ends on a specific character. Then the 6 numbers are read in through a while loop until they're all read in.
My problem is that when determining the highest final score amongst all the names, the last final score read in is declared the highest final score. Anything is appreciated

