Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS304 Object Oriented Programming.Assignment No. 3 Solution Spring Semester 2013
#1


CS304 Object Oriented Programming.Assignment No. 3 Solution Spring Semester 2013


Assignment No. 03
SEMESTER Spring 2013
CS304- Object Oriented Programming Total Marks: 20
Due Date: 20/05/2013
Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit (zero marks) if:
o The assignment is submitted after due date.
o The submitted assignment is other than .cpp file.
o The submitted assignment does NOT open or file is corrupted.
o The assignment is copied (from other student or ditto copy from handouts or internet).
Uploading instructions

o For clarity and simplicity, you are required to Upload/Submit only .CPP file
Objective
The objective of this assignment is:

o To give you the idea of practical implementation of some concepts like, definition of classes, Data members, member functions, Aggregation, Composition, Constructors etc.

For any query about the assignment, contact at CS304@vu.edu.pk
GOOD LUCK
Marks: 20
Composition and Aggregation is an important relationship between objects in object oriented paradigm. Consider the following class diagram, which shows some classes and their relationship (Composition and Aggregation), while the detail of classes is given in the table
Class Name Attribute Name Attribute Data Type Functions
Sign Name Character String -Constructor
-Getters and Setters
Candidate Name Character String -Default constructor()
Votes_obtain Integer -Overloaded Constructor
sign Sign -Getters and Setters
-Count_votes()
Constituency ConNo Character String -Default constructor()
Candidate_name Cadidate -Overloaded Constructor
-Getters and Setters
Result DayOf_result Character String -Default constructor
-Getters and Setters
-compile_result()
VB_Paper CanName Candidate -Default constructor
res Result -Overloaded Constructor
-Getters and Setter
-Get_result()
You are required to implement this class diagram (Write complete program) in to C++ with all functions and concepts (Aggregation and composition) given in the class diagram/table.

You need to consider that there may be two or more than two candidates who can contest in the constituency.

Details of important Member functions:
Count_votes(): This function will count votes of each candidate.
compile_result() : This function will Compile (calculate) the result of the contesting candidates.
Get_result(): This function will get/show result from the Result class through the part object β€œres” of the VB_Paper class.
Output:
Lectures Covered: This assignment covers Lecture # 07-15
Deadline: Your assignment must be uploaded/submitted at or before. May 20, 2013

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cs403 Assignment 3 Helping material May 8,2010 viki 1 5,204 04-28-2020, 03:19 PM
Last Post: ClaireBeauc
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,089 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,597 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,279 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,869 01-20-2016, 03:19 PM
Last Post: Vuhelper
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,099 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,909 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,531 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,558 05-15-2015, 03:52 AM
Last Post: Xpert
  Assignment No. 01 Spring 2015 Information Systems CS507 idea solution spring 2015 Xpert 0 2,447 05-15-2015, 03:49 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)