object oriented programming- assignment 01

Upload: hamza-malik

Post on 15-Oct-2015

7 views

Category:

Documents


0 download

DESCRIPTION

Help to understand basic concepts of OOP

TRANSCRIPT

Assignment No

Assignment No. 1

Deadline

Your assignment must be uploaded/submitted before or on 6th March, 2014.

Rules for Marking

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

The assignment is submitted after due date The assignment is copied

Objectives

This assignment has been designed so that you would be able to identify objects and their relationships from the given problem statement(s). After the completion of this assignment you should have a good grasp on:

How to analyze a problem statement with the view of objects and their relationships How to represent a set of objects and their relationship among them graphically.

Assignment:Consider the case study:

A team has two types of players: Batsman, Bowler. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his scores through out the tournament. For bowlers its the number of wickets taken in the tournament. Thus the performance is determined on the basis of score made (in-case of batsman), wickets taken (in-case of bowler). There should be a display function that displays all the information of player of a particular category.

Design a class hierarchy for the players in which you are required to find out the best player in each category according to their performance in a tournament.For this, you need to identify classes/objects, attributes against each class/object, operations against each class/object.

After identifying them, you need to make an object model. Your design should be such that it can be used to declare a list of players belonging to each category. What to submitYou are simply required to make an object model in a word file and send it as your assignment.