I'm currently using ASP.NET Core MVC for my application and I'm not sure how to approach the problem.
Say I have two array of double type
double[] questionOne = {1,4,5,2,4};
double[] questionTwo = {3,2,4,5,2};
I want to use a method to concatenate them together and store them in possibly a dictionary such that the stored value is something like
stud1 | 1,3
stud2 | 4,2
stud3 | 5,4
stud4 | 2,5
stud5 | 4,2
so I can retrieve the values and calculate the total value for each student.
I do not know how many questions there will be.
Neither do I know how many students there will be.
I'll be able to loop for these values later on but for now, its a fixed value.
Should I be storing the values in a dictionary, list or a tuple?
Thereafter, how can I call the method such that I can return the value and display in my "View"?
I don't need the values to be in a table, a simple raw output to check the algorithm idea will do if possible.
Dictionary<string, Tuple<int, int>>?