Let me start by saying this is a homework assignment, I don't need any coding help though -- I just feel lost when I try to make sense of how to implement MVC with what the instructions say... I have read many many examples from forums and different websites (even my two books for this data structures class) and I have a great understanding of what MVC is. I just get so confused when it comes to implement it with code...
So this is what the teacher gave us to work with:
The class
Driver(VIEW), classList(MODEL), and classTests(CONTROLLER) such that an object of this class can store a student’s first name, last name, five test scores, average tests score, and grade. Add constructors and methods to manipulate data stored in an object. Among other things, your classes must contain methods to calculate test averages, return test averages, calculate grades, return grades, and modify individual test scores. The methodtoString()must return test data (including student’s name, five test scores, average, and grade) as aStringplus the class average.
I do realize she labled what classes should be what, and I have already made those classes... My confusion is what class to give what methods/functions/variables etc.
The model should hold information its like a database .... so should I make another class Student that has variables first/last name and test averages? But then which class will get the getter and sett methods?
Again, I have searched and searched and searched, I have seen many examples but its just not clicking for me :(
Thanks to anyone that can dumb this down enough based off what the teacher has presented....
addStudent(Student s),calculateAverage()and whatnot methods.