Question: Write a program (C or C++) to take in the record of a batsman. The batsman has 2 arrays of equal size which is equivalent
Write a program (C or C++) to take in the record of a batsman. The batsman has 2 arrays of equal size which is equivalent to the number of matches he has played. For the first array, input the runs scored per match from the user. For the second array, input the number of deliveries taken from the user. Take the input of the batsmans name and age. Now calculate the batsmans best strike rate, his best score so far, his average. Display these results (Name, Age, Matches Played, Best score, Average, Best Strike rate, 50s, 100s) with a good presentation with good spacing and new lines as shown on TV. Take the inputs of at least 2 batsmen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
