CS 304 Assignment No 3 Solution Fall 2019
Assignment No. 03
CS304- Object Oriented Programming
Total Marks: 20
Due Date: 16/01/2020
The objective of this assignment is:
To give you the idea of practical implementation of C++ Inheritance and Polymorphism.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
· The assignment is submitted after due date.
· The submitted assignment does not open, execute or file is corrupted.
· Your assignment is copied from internet, handouts or from any other student.
(Strict disciplinary action will be taken in this case).
This assignment covers Lecture # 22-29.
In continuation of scenario of PSL (Pakistan Super League) given in Assignment 1, you are required to write a C++ program that should contain three classes: Player, Batsman and Bowler, where Player should be base class and Batsman and Bowler should be its derived classes. The detail of data members and member functions for each class is provided in the given table.
Batting Average = Runs Scored / Total Innings
Bowling Average = Total number of runs conceded / Total Overs
Click Here For Solution File
For More Latest Update Stay With Us.