In my teacher gradebook program, I have several VB classes set up for the framework of the program.
I have the following classes so far.
Student (has all the student info like names, address, booknumber, grade list, attendance list, parent info etc)
Parent (info about a student's parents
Assignment (info about each assignment like page, perfect score, date assigned, kind of assignment - test or homework, etc)
Grade (has fields Value and Info, and a function PercentCorrect()
In the student class, I've set up a 2-dimensional array of grades (of type Grade Class).
But I'm not sure how to set up Get and Set statements within the Student class that refer to the Grade class.
In my main program, I want to do something like
Student(i).Grade(1,1).Value = "85" 'yes I know it's a string
Student(i).Grade(1,1).Info = "needs to redo this one" 'field for my notes on the student
Student(i).Grade(1,1).PercentCorrect = ????
Now another point. The perfect score for this assignment is held in the Assignment class. I can access it with something like
ps = Assignment(1,1).PerfectScore
Now I haven't tried it yet but will I be able to access this PerfectScore info from my Grade class to actually calculate the perfect score? Or do I need to include PerfectScore as a field in the Grade class? If so, then I have to update it for EACH student and for EACH grade. If I keep it in the Assignment class, then it only has to be changed once.
Confused yet? I am.
Any tips for me?
