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...


Question 10: Write a C++ program to store the performance of each player of the test match<br>which has been played between Pakistan and South Africa. Input player name, country name,<br>runs scored, counts of wickets taken, good fielding, missed fielding, catches taken, catches<br>dropped for each player of both the teams. You can store this information in array of 'player'<br>structure. In the player structure include another data member named performance, which<br>can be calculated using following formula;<br>Performance =<br>(runs scored / 30) + (wickets taken * 30) + (good fielding * 5)<br>(missed fielding * 5) + (catches taken * 10) – (catches dropped * 10)<br>After calculating and updating the performance of every player display the name of the 'Man<br>of<br>the<br>Match'<br>(i.e.<br>the<br>player<br>who<br>has<br>highest performance<br>value).<br>

Extracted text: 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).

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here