I have an assignment that asks to create a program to input students names & test scores. After which the user gets the option to calculate the average and print out which students were below, and/or print out the highest score and which students had that score.
Since the total # of students is unknown I'm using vectors in order to allow this. My problem at the moment is how to combine both char input and double input into a vector container and be able to generate the scores. I've already scrapped 3 different versions of my code since I hit a road block each time. I ideally want to create 2 classes (one for student names and the other for scores), but not sure how to bring those values from the class into the vector in the main program file.
Actually come to think of it, I can create a tmp1 for the name & tmp2 for the grade and add both to a container, but then I'm back at my original question on how to combine char with a integer (well double since scores may use decimals).
Any help would be greatly appreciated.
Thanks