Math, asked by 2115031, 4 days ago

The runs scored by N batsmen of a cricket team is passed as the input to the program. The program must print the name of the batsman who scored the highest runs. (You can assume that no two batsmen will be the top scorers). Input Format: The first line denotes the value of N. Next N lines will contain the name of the batsman and the runs score (both separated by a comma) Output Format: The first line contains the name of the batsman with the top score. یا Boundary Conditions: 2 <=N<=11​

Answers

Answered by manyamishra6c
1

Answer:

25

Step-by-step explanation:

Answer:

Given -

Mean =60

Standard Deviation =15

Coefficient of Variation =  

Mean

(Standard Deviation×100)

 

⇒  

60

(15×100)

 

⇒  

60

1500

 

⇒25

So, Coefficient of Variation is 25

Hope this answer helpful

Answered by KajalBarad
0
  • The runs scored by N batsmen of a cricket team is passed as the input to the program
  • The program must print the name of the batsman who scored the highest runs.
  • Input Format: The first line denotes the value of N.
  • Next N lines will contain the name of the batsman and the runs score (both separated by a comma)
  • Output Format: The first line contains the name of the batsman with the top score. یا Boundary Conditions: 2 <=N<=11​

C program satisfying the above requirements.

/*Top Scoring Batsman Name

ID:2572

The runs scored by N batsmen of a cricket team is passed as the input to the program. The program must print the name of the batsman who scored the highest runs. (You can assume that no two batsmen will be the top scorers).

Input Format:

The first line denotes the value of N.

Next N lines will contain the name of the batsman and the runs score (both separated by a comma)

Output Format:

The first line contains the name of the batsman with the top score.

Boundary Conditions:

2 <= N <= 11

The length of the names will be from 3 to 100.

The value of the runs will be from 0 to 500.

Example Input/Output 1:

Input:

5

BatsmanA,46

BatsmanB,51

BatsmanC,13

BatsmanD,8

BatsmanE,72

Output:

BatsmanE

*/

#include<stdio.h>

#include<stdlib.h>

int main()

{

int n;

scanf("%d\n",&n);

char batsmen[100],bat[100];

int run=0,score;

while(scanf("%[^,],%d\n",batsmen,&score)>0)

{

if(score>run)

{

run=score;

strcpy(bat,batsmen);

}

printf("%s",bat);

}

}

#SPJ3

Similar questions