Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c programming Question 5: After a disastrous lab final you have come to see a cricket match of Bangladesh to lighten your mind. But the

c programming Question 5: After a disastrous lab final you have come to see a cricket match of Bangladesh to lighten your mind. But the score keeper 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 name and the run they scored in the cricket match. Then you have to store the top five players name and run they scored in the match in a file called Scores.txt. At the end of the match, you will have to print all the players name and their score who scored more runs above the average among them from the file. Write a C program to complete the above tasks.

[You need to submit the Score.txt file along with the code and screenshot for this question]

[Note: This question contains 4 bonus marks]

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_2

Step: 3

blur-text-image_3

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

Provide the best employee relations environment.

Answered: 1 week ago