Question: Question 10: Write a C++ program to store the performance of each player of the test match which has been played between Pakistan and South

Question 10: Write a C++ program to store the performance of each player of the test match which has been played between Pakistan and South Africa. Input player name, country name, runs scored, counts of wickets taken, good fielding, missed fielding, catches taken, catches dropped for each player of both the teams. You can store this information in array of player structure. In the player structure include another data member named performance, which can be calculated using following formula;

Performance = (runs scored / 30) + (wickets taken * 30) + (good fielding * 5) - (missed fielding * 5) + (catches taken * 10) (catches dropped * 10)

After calculating and updating the performance of every player display the name of the Man of the Match (i.e. the player who has highest performance value). (18 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!