assignment solution for object oriented programming, Assignments of Computer Science

enttities and attributes with their association

Typology: Assignments

2020/2021

Uploaded on 05/24/2021

ayesha-altaf
ayesha-altaf 🇵🇰

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment No. 01 (Graded)
SEMESTER FALL 2020
CS304- Object Oriented Programming
Solution:
1. Extract the main objects (entities) of above system
1. Admin
2. Voter
3. Vote cast
4. Party
5. Candidate
6. result
2. Find the necessary attributes and functions that need to be
associated with each object.
Admins:
Attributes Functions
Admin_name Submit report
Admin_id results
Id_pasword Maintain manners
Voters
Attributes Functions
Voter id card Submit vote
party name
Voter name
Candidates
Attributes Function
name Submit nomination
Party symbol Cancel nomination
id View result
Party:
Attributes Function
Party name Approve nomination
Party id Cancel nomination
Party symbol View result
pf2

Partial preview of the text

Download assignment solution for object oriented programming and more Assignments Computer Science in PDF only on Docsity!

Assignment No. 01 (Graded)

SEMESTER FALL 2020

CS304- Object Oriented Programming

Solution:

**1. Extract the main objects (entities) of above system

  1. Admin
  2. Voter
  3. Vote cast
  4. Party
  5. Candidate
  6. result
  7. Find the necessary attributes and functions that need to be associated with each object.** Admins: Attributes Functions Admin_name Submit report Admin_id results Id_pasword Maintain manners Voters Attributes Functions Voter id card Submit vote party name Voter name Candidates Attributes Function name Submit nomination Party symbol Cancel nomination id View result Party: Attributes Function Party name Approve nomination Party id Cancel nomination Party symbol View result

Vote casting attributes function voter id Submit vote Time table Cancel vote Date schedule Result Attributes function No of submitted votes Counted votes No of cancelled votes Announce the winner Announce the loser

4. Construct a final comprehensive Class diagram showing all classes and their relationships along with their attributes and functions. Admin Admin name Admin id Id password Email address Manage activity Submit report Candidate Id Password Party name Part symbol Nominations View result Voter voter name voter id card Id password Email address Cast the vote Vote casting Voters names Party name Submitting vote Counting votes Result No of total vote Cancelled vote Parties name Winner name Loser name