Okay, I'm totally new to arrays, and my professor is restricting that we only use 1d arrays and not 2d.
I need to write a program that reads a txt file of quiz grades. Where the first column is the quiz number, and the second column is the possible points, and the 3rd column is points scored. And the last row is extra credit points. example of the txt file.
Please, if anyone can help that would be super amazing.
It would be super amazing if you start writing the code and ask some specific questions when you feel stuck somewhere. No need to hope anyone will do it instead of you :)
You can use 1D array instead of 2D array for example in that way:
1 2 3 4 5 6
int a2d[][];
int a1d[]
int x, y;
a2d[y][x] = ...
a1d[y * 3 + x] = ...