Assignment No. 03
Total Marks: 20
Due Date: 20/05/2013
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:
The objective of this assignment is:
For any query about the assignment, contact at CS304@vu.edu.pk
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.
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.
Lectures Covered: This assignment covers Lecture # 07-15
Deadline: Your assignment must be uploaded/submitted at or before. May 20, 2013
enter contituency number/name:
jst yei araha output me'
YHEA I WAS WRNG ITS CORRECT solution thanks ..................
final hai preezy :) :)
100% finnal ha
yar jst program e send kran ha ya output b send krna ha?
no need of output ,,,.cpp mein only
little chef............bro apne jo first code send kiya tha usme code optins hi select krta jata tha that
want to cast vote Y/N
yhi process repeat hota ja rha tha or jese hi N kro press any key to continue and exit........and result show nai hota tha and ab jo apne code send kiya hai isme just one input for the sign option lene k bad hi exit ho jata hai ..........
abi b complete compile nai ho rha apka code if u read my reply then plz rply me...........
2nd asgnmnt mn ktny mx ay sb k????
mery b 0........... r 1st mn????