Saturday, 30 April 2011

Assignment no 2 of Cs304 below

Rules for Marking

It should be clear that your assignment will not get any credit if:

o The assignment is submitted after due date
o The assignment is copied
o The assignment is in a format other than .h or .cpp file. (C++)

Objectives

The objectives of this assignment are,

  • Giving the idea of practical implementation of basic object oriented concepts like abstraction, encapsulation, inheritance and sub typing to students.

Assignment:

In Assignment No.1 you developed Object Oriented Model for Topic Based Content Management System. Now you have to give its practical prototype in c++, mean you have to provide the solution of your first assignment at abstract level. Please note down that you don’t have to give actual implementation in c++ but simple stereotype (sketch) in the form of c++ code mentioning class names their parameters and functions with access specifiers you also have to show the relationship between classes in the form of inheritance, relationship among objects in the form of Aggregation, Composition, Association (where required) and also to highlight which data member or member function has “constant and/or static in proper c++ syntax.


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


Deadline

Your assignment must be uploaded before or on 6th of May, 2011

No comments:

Post a Comment