For example a part of your code may look like,
class Student{ char name[50]; char id[10];
public: void TakeClass();
}
class GraduateStudent : public Student {
Attributes and behavior of graduate student…..
}
|
You will write such code for your Topic Based Content Management System.
Important:
Below is the solution of first assignment. You are required to take this solution as an input (guidelines) and provide the desired solution.
Some of the attributes and functions belonging to different classes are highlighted here. You are also required to keep the part of your solution and place as data member and member function of respective class.
1. Main Objects.
Student
Content Management System (Portal)
Study Program
Course
Topic
Sub-Topic
Lesson
2. Relationship between the objects
A Student must logon to Portal
Portal contains one or more Study Programs
A Student must select a Study Program
A Study Program is a group of more than one Course
A Course is composed of more than one lesson and more than one Topic
A Topic may contain Sub-Topics
A Topic may span for one or more Lessons
A Lesson may contains one or more Topics
A Sub Topic is “a kind” of topic
A Topic / Sub Topic can be available in HTML, PPT and PDF formats
Student should be able to Search, View, Read and Download contents
3. Attributes & Methods
Attributes
Portal: (No. of Study Programs, Selected Program, Selected Course)
Study Program: (Code, Title)
Course: (ID, Name)
Student: (ID, Name)
Topic: (ID, Title, HTML File, PDF File, PPT File)
Sub Topic: (ID, Title, HTML File, PDF File, PPT File)
Lesson: (ID, Title)
Methods
Portal: Add, Remove, Select, Search, View, Print, Download
Study Program: Select, List Courses, View
Student: Logon, Select, Read
Course: Add, Select, View
Topic: Add, Remove, Select, Search, View, Print, Download
SubTopic: Add, Remove, Select, Search, View, Print, Download
Lesson: Add, Remove, Select, Search, View, Print, Download