PDA

View Full Version : cs-304 OOP assignment # 2 spring 2011 required



alibaig
04-29-2011, 05:26 AM
Object Oriented Programming (CS304)
Assignment No.2
Deadline
Your assignment must be uploaded before or on 6th of May, 2011
Objectives
The objectives of this assignment are,

o Giving the idea of practical implementation of basic object oriented concepts like abstraction, encapsulation, inheritance and sub typing to student
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

zaara
05-06-2011, 02:00 AM
plzzzzzzzzzzz kindly upload the solution tomorrow is last date

Xpert
05-06-2011, 03:51 AM
ufffffffffffffffffffffffffffffff

harib raza
05-06-2011, 10:28 AM
xprt plz upload the solution today is last date

Xpert
05-06-2011, 02:13 PM
ok yar kartary han kuch.

zaara
05-06-2011, 02:36 PM
some hours are left plzzzzzzzzzzzzzzzzzzzzzzz
upload solution we need it.........kindly
we will b thankfull to u

saneha
05-06-2011, 09:04 PM
//Library class
class library {
//Attributes of library class
char name[25];
char interface[50];
char space[100];
public:
// Functions of library class
int storeDetailOfData();
int add();
int search();
int Return();
int borrow();
};

// Starting of administrator class
class administrator {
// Attributes of administrator class
library name[25];
char gender[8];
int id;
char address[50];
public:
//Functions of administrator class
void login();
void logoff();
int search();
int Return();
int borrow();
};

saneha
05-06-2011, 11:21 PM
http://1.bp.blogspot.com/-5r8eanDRD_g/TcP1lw5g6pI/AAAAAAAAADw/kISD6p89P6c/s320/Untitled%2B%2B1.png
http://2.bp.blogspot.com/-rg79uhcjw7c/TcP1hxcJ47I/AAAAAAAAADo/ogTGAp_T6Rs/s320/Untitled2.png
http://3.bp.blogspot.com/-AhIOgqbIPFU/TcP1dxW64VI/AAAAAAAAADg/MvTvTZlmjr4/s320/Untitled3.png
http://1.bp.blogspot.com/-LtRuKGumw9Y/TcP1ZI_3kjI/AAAAAAAAADY/K646B3_zGUE/s320/Untitled4.png

Xpert
05-07-2011, 12:54 AM
that;s good to see a solution from you.....

sumaira kharal
05-07-2011, 03:39 PM
:smileys36:ausslam alaikum
sir g i am sumaira kharal
m.c.s kr rahi hon 2nd semester hae pls send me solved papers of these subjects pls i am so worried about that pta nai kia bny ga
cs 301 , cs 304 , cs 401 , mth 202 , eng 201 , cs 201
ap ki boht boht meharbani ho gi
pls meri mushkal b hal kr dain main pass ho jaon.
thanks
sir g papers solved hony chahyn main unsolved nai kr skti pls
:smileys36:

Xpert
05-07-2011, 04:28 PM
ws,
u better learn this forum. all problems will be solved. everything is in vuhelp forum

harib raza
05-07-2011, 05:08 PM
xprt plz upload solution only few hours are left of extended day

Xpert
05-07-2011, 07:17 PM
dear is ka tu solution already ho gia hai upload. you please do type that code from the image.

harib raza
05-07-2011, 08:23 PM
xprt wo to correct solution nahi hai plz correct solution upload karain na

harib raza
05-08-2011, 02:35 AM
plz anyone upload the correct solution

Xpert
05-08-2011, 02:48 AM
kia yah sol galat hai?

dodo
05-08-2011, 03:09 AM
solution galat nahi hy but jo assignment hmyn mili hy us man content managment system jisy first assignment man model kia tha us
ki pretical prototype mangi gai hy.uploaded solution man koi aur question hy.pleaz expert help us please.