Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs304 assignment no 2 fall 2011 solution required
#1
Object Oriented Programming (CS304)

Assignment No.2


Deadline

Your assignment must be uploaded before or on Monday 21st of November, 2011


Rules for Marking

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

[FONT=&quot]o [/FONT]The assignment is submitted after due date
[FONT=&quot]o [/FONT]The assignment is copied
[FONT=&quot]o [/FONT]The assignment submitted in a format other than .cpp.


Objectives

The objectives of this assignment are,

  • Giving the idea of practical implementation (prototype in C++) of basic object oriented concepts like abstraction, encapsulation, inheritance, association, aggregation and sub typing to students.








Assignment:


In Assignment No.1 we developed Object Oriented Model for three modules of E-Card System. You tried to solve assignment by following the procedure discussed in lecture as well as guidelines given in assignment. Last assignment solution also requires a comprehensive understanding of domain knowledge. As much as you gain knowledge about domain, there will be more refined solution.

Now In assignment No.2 you are required to provide a practical prototype in c++ only for the following class diagram. Mean you will have to provide the solution in the form of classes in c++.







Class diagram for assignment No. 2


Also note 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 (inheritance, association, aggregation, composition) between classes in proper c++ syntax with comments.

Note: Every student will follow the above mentioned Object Model in order to develop solution of assignment No.2.

Example Object Model and its Prototype










































#include<iostream.h>
#include<conio.h>

class Lesson{ // Lesson class

// Lesson class attributes
// Access specifier is by default private
int ID;
topic * title;//aggregation relationship b/w lessons and topic
int NoOfLessons;

public:// public access specifier

// Lesson class functions/ operations
void add();
void remove();
bool select();
void search();
void View();
void print();
void download();
};// end of Lesson class
// ************************************************************
// ************************************************************
// ************************************************************


class course{ //course class
//Attributes of course class
char * code;
topic title; //composition relationship b/w Course and topic
char * courseName;
int duration;
Lesson NoOfLessons;//composition relationship b/w Course and Lesson

public:// public access specifier

//course class functions/operations
void add();
bool select();
void View();
void read();

};// end of course class

// ************************************************************
// ************************************************************
// ************************************************************

class StudyProgram{ // StudyProgram class
//Attributes of StudyProgram
// Access specifier is by default private
char * Code;
char * title;
char * ProgramName;
course duration; //composition relationship b/w StudyProgram and course

public:// public access specifier
bool select();
char * ViewCourseList;
};// end of StudyProgram class

// ************************************************************
// ************************************************************
// ************************************************************

class topic{ // topic class

//topic class attributes
// Access specifier is by default private
int ID;
char * title;

public: // public access specifier

// topic class functions/ operations
void add();
void remove();
bool select();
void search();
void View();
void print();
void download();
};// end of topic class

// ************************************************************
// ************************************************************
// ***********************************************************




You will write such code for your E-Card system.


Note: You are required to submit only .cpp file. Word document or any other file format will strongly be discouraged.


Attached Files
.doc   Fall 2011_CS304_2.doc (Size: 106.5 KB / Downloads: 176)
Reply
#2
hy bhai g solution kb aye ga???
Reply
#3
I don't have any idea because i am not working on it.
Reply
#4
q bhai g hm se dushmani hy kia???
Reply
#5
agar work nahi kr rahy to ye q upload ki .bachon ko kush karny k lye??? ye to lms pr daikh hi chuky.
ganndy bhai....
Reply
#6
ye sala logon ko ullo banaya hai is ne is ki website pe lanat
Reply
#7
muja ak saal sa is site sa kabi bi kisi subject ka solution nahi mila.
Xpert na apni jasi bakwas site rakhi howi ha. ager work nahi ker sakta to chod do is site ko.
lagta ha ab muja students ki help ka lia site banani pata gi. or unqreeb banoin ga Inshallah.
Reply
#8
yaro solution ka kuch socho
Reply
#9
yar aj last date hey kahein say solution find karo
Reply
#10
Xpert to sala shkal say hi Dako lagta hai. Confusedmileys9:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,322 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,908 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,928 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,165 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,242 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,967 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,664 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,800 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,701 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,797 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)