Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have come to see a cricket match of Bangladesh to lighten your mind. But the scorekeeper is missing and BCB gave you the responsibility

You have come to see a cricket match of Bangladesh to lighten your mind. But the scorekeeper is missing and BCB gave you the responsibility to keep the score record of the players using a C program. Now you have to define a structure to hold the players' names and the run they scored in the cricket match. Then you have to store the top five players' names and run they scored in the match. At the end of the match, you will have to print all the players' name and their scores who scored more runs above the average among them. Write a C program to complete the above tasks.

Sample Input

Player 1 Name: Tamim Iqbal Player 1 Runs: 35 Player 2 Name: Shakib Al Hasan Player 2 Runs: 49 Player 3 Name: Soumya Sarkar Player 3 Runs: 5 Player 4 Name: Mushfiqur Rahim Player 4 Runs: 23 Player 5 Name: Liton Das Player 5 Runs: 17 

 

Sample Output

Players with more than average runs: Tamim Iqbal, Runs: 35 Shakib Al Hasan, Runs: 49

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions