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



CS304- Object Oriented Programming Assignment No.1 Solution Spring Semester 2013

Assignment No. 01
SEMESTER Spring 2013
CS304- Object Oriented Programming
Total Marks: 20
Due Date: 26/04/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 .doc 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 .DOC file
o Copy/Paste your class diagram in your final MS Word (.doc) file if you are using any drawing tool (MS Paint, MS Visio etc).
Objective
The objective of this assignment is:

o To give you the practical implementation of some of the OOP concepts like abstraction, encapsulation, inheritance, association, generalization, specialization, and UML class construction.

For any query about the assignment, contact at CS304@vu.edu.pk
GOOD LUCK
Marks: 20

Problem Statement:

Consider the present voting situation of Pakistan in which lots of people get deprived off their right to cast the vote. Reasons may include:
1. A large number of people live abroad so it is not possible for them to come to Pakistan just to cast their vote.
2. People who have domicile of some “abc” city but have been living in some “xyz” city, usually don’t move to their hometowns to cast the vote.
3. Patients in hospitals, old people, and disable persons who are unable to go to the polling stations can not cast their vote.

Now, Suppose you are working in a software company as a manager, and you are given a task from Election Commission of Pakistan to develop an “E-Voting” system both for national citizens and overseas citizens to cast their vote so that it could remove the distance barriers, facilitate the old people, disable people, and patients etc. This will increase the voting ratio of the country.

Overview of E-Voting System:

E-Voting system will handle two types of voters- National voters and Overseas voters. Each voter will cast vote against two voting categories- one for Provincial Assembly and one for National Assembly.
To get registered with Election Commission, the system will provide a registration form to the citizen to fill in. The citizen will enter his/her particulars (CNIC#, Name, finger print etc…) and will submit this filled form to the system. The form will be evaluated by the Validation component of the system. This component will contain an electronic database of all citizens (National, and Overseas) of Pakistan with their Name, CNIC#, finger prints etc. It will check for duplication or invalidity of the citizen’s information. If information is valid, the component will display a message to the citizen that he/she has become a registered voter with Election Commission of Pakistan. The system will assign voter ID and password to the voter. The system will store voter’s information in its database “Voter’s Record”.
On the day of Election, voter will be provided a login form to enter voter ID, password, and fingerprint. Voter’s information will be checked by the system. The system will ensure that this is a registered voter and this person has not cast the vote yet. The system will show a virtual ballot paper (form) to the voter. The virtual ballot paper will consist of signs of different candidates contesting in the election in voter’s particular constituency. The virtual paper will also consist of two types of voting categories-one for Provincial Assembly and one for National Assembly. The system will prompt the voter to choose the signs from the virtual ballot paper by touch screen against each category. The voter will choose any sign and the system will ask for confirmation of the selected choice (sign). The system will show a message to the voter that your vote has been cast successfully. The system will update voter’s information so that this person could not vote again. At the end of Polling, the system will count the votes and announce the result to the Election Commission.
The tasks you have to do are:
1. Extract the main objects (entities) for this system.
2. Find the necessary attributes and functions that need to be associated with each object.
3. Identify the relationships between these objects.
4. Construct a final comprehensive Class diagram showing all objects and their relationships along with their attributes and functions.

Important things to consider:

1. As happens in real world that everyone visualizes a problem in a different way so the solutions of all students may vary based upon their own thinking, not taken from any source.
2. You have to use standard UML notations for objects, classes, and their associations.

Note:
1. You have to use all concepts studied so far like abstraction, encapsulation, inheritance, association, generalization, and specialization wherever applicable.

Lectures Covered: This assignment covers Lecture # 1-6
Deadline: Your assignment must be uploaded/submitted at or before. April 26, 2013


Attached Files
.doc   Spring 2013_CS304_1.doc (Size: 174.5 KB / Downloads: 268)

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

to identify classes
1) ''Extract nouns in Problem statment"
2) Eliminate irrelevent classes
3) Add classes by analyzing requirments
next step is Finding Assosiation
find relation ship between objects
1) Extract verbs connecting objects
2) verify acces path
then Identify Atributes f the Identified objects
then identify Operations
1) extract verbs connected with an object
2) eleminate irrelevant operations
then Identify Inheritence
1) search lines like "a kind of " by looking at key words like "Such as" "For example" etc.
At the end refine the Object model

for more details see Handouts page no 57-64


[SIZE="4"]
.doc   Fall2012_CS304_1_SOL.doc (Size: 84 KB / Downloads: 85) [/SIZE]

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
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,319 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,924 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,159 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,658 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,792 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,695 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,793 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)