Spring 2024 - CS201P - Assignment#2
Spring 2024 - CS201P - Assignment#2
2 Total Marks: 20
Semester: Spring 2024 Due Date: Monday,
CS201P – Introduction to Programming(Practical) June 24, 2024.
Instructions
Please read the following instructions carefully before submitting the assignment:
It should be clear that your assignment will not get any credit if:
Objectives:
To enable students to understand and practice the concepts of:
Class
Object
Assignment
You are required to write a C++ program to find the performance of cricket players after a match. The detailed
requirements of assignment task are given below.
1. Store the information of each player
2. Give a turn to each player and calculate total score and balls played.
3. Display the score of every ball played by the player.
4. Display OUT message if a player is out on a ball.
5. Display total balls played by a Player.
6. Display summary of match (Player Name, Score, Balls Played).
7. Display man of the match (Player name with highest score).
Player
-playerName:string
-totalScore:int
-ballsPlayed:int
+setName(string):void
+getName():string
+setScore(int):void
+getScore():int
+setBalls(int):void
+getBalls():int
Sample Video:
To open the sample video, double-click on the following file.
Syllabus:
The syllabus for this assignment includes all topics covered from Lab 8 to Lab 11.
Best of luck!