I am just starting out trying to learn this program...from the very very basic point. I'm working on my second project and the book nor the teacher helps at all. Here is what my program is supposed to do:
your input file could look something like this.
2 // total number of students
5 Terry 100 100 100 100 100 // the first student “record”
2 Susan 100 100 // the next student “record”
your OUTPUT should look something this:
Student name: Student Average: Min: Max:
Name1 average1 min1 max1
Name2 average2 min2 max2
I got the code that asks the user for the total number of students but as far as entering the 'number of grades to be input into the program' such as the '5' before Terry, then be able to type Terry and the five grades all on the same line. I have no idea how to do this. My professor just assumes we know all these codes and forgets its an introductory course and this is all new to me. He mentioned something to the effect of using " .h " header files? Does this make sense? Somehow I think I need to link different files to a main one but I don't know why I would need numerous files and have them all linked. I'm really confused on where to go after asking the user for the total number of students that need their average, min, and max grades computed. Can anyone head me in the right direction? I would like to know why certain codes need to be written particular ways, why i need to make different files and so on, to give me a better understanding so i can pass my midterm exam in a couple weeks. If someone would like to get me started that would be great....thanks for your time.