Enhance the Vector<T> class below
a. Add a new public function to print out the content of each item in the items.
b. Implement a Book class that can be used to create a template of instance of Vector<Book>. It may have other member functions if needed.
c. Implement a Student class that can be used to create a template of instance of Vector<Student>. And the Student class has a data member of Vector<Book>, and a get function for this data member, e.g. Vector<Book>& GetBooks(). It may have other member functions if needed.
d. Implement a Course class that can be used to create a template of instance of Vector<Course >. It has a data member of Vector<Student>and a get function for this data member, e.g.. Vector<Student>&
GetStudents(); It may have other member functions if needed.
e. Write a main function that simulates a school model. The school has 2 courses, each course has 10 students, and each student has 5 books. So, you can create an instance of Vector<Course> to represent the school, e.g.. Vector<Course
1
Expert's answer
2014-04-10T09:45:54-0400
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment