I am having problem figuring what my next step should be concerning this program I am writing. I am trying to write a program that using "pass by reference" to calculate the average grade for 6 students, and display in this format: Student name -ID, Average and Letter Grade. Now, my problem is how do i create a program that will do this for 6 students (multiple arrays) and how do I write the if statement to display grade each time or is there another or easier way of doing it. I am very new to progamming.....
Here is what I have so far....It works but for only one student at a time and I know its wrong.
Well one idea is to have one single array of student objects where each instance represents a single student record. Make the student record type a class and define an interface for setting the values. Also you can overload operator<< to print each instance of the class.
You could pick at this article for some examples on how to do this with object oriented design. Compile it and use the debugger to study it and perhaps it'll give you some ideas. http://cplusplus.com/forum/articles/10879/