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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment