Computer Science, asked by abhiishekg02, 2 months ago

What is an example of using the Internet of Things (IoT) to deliver innovative
Cloud-based solutions to customers?
online surveys that gather customer input to improve services in the future
customers using a PC connected to a local network to search for recommendations
wearable technology that provides customers with on-the-spot personalized experiences
scheduled conferences with brand ambassadors to pitch customers on new offers
I don't know this yet.

Answers

Answered by ramalingam51g
0

Answer:

O4. There are 8 teams which are playing in the IPL this year, out of which you are given the scores of four teams in form of 4 different arrays of length 11 each. You are also given 4 arrays of length 11 each which represent the total number of balls faced by that batsman. Please write a program which takes the input from these arrays and decides the maximum runs that your favourite player has to score so far in order to get the orange cap. [The orange cap is awarded to the person who scores maximum runs in the tournament]. Also, please find out the maximum strike rate achieved by a batsman so far. [10]

Note: In total you are given 8 arrays where the first 4 arrays represent the runs scored and the next 4 represent the total number of balls faced.

Sample Run:

Input:

[10, 45, 500, 400, 45, 56, 67, 78, 100, 8, 11]

[100, 450, 510, 410, 415, 56, 68, 87, 101, 9, 9]

[404, 445, 520, 450, 415, 156, 167, 488, 110, 4, 2]

[505, 445, 554, 410, 445, 556, 167, 178, 70, 4, 1]

[20, 100, 500, 345, 45, 65, 86, 69, 100, 7, 10]

[101, 246, 500, 355, 145, 165, 45, 45, 54, 8, 9]

[434, 456, 550, 395, 445, 165, 96, 369, 100, 4, 6]

[520, 340, 500, 405, 345, 565, 186, 169, 67, 3, 2]

Output:

Maximum Runs Scored: 556

Maximum Strike Rate: 286.206897

Explanation:

O4. There are 8 teams which are playing in the IPL this year, out of which you are given the scores of four teams in form of 4 different arrays of length 11 each. You are also given 4 arrays of length 11 each which represent the total number of balls faced by that batsman. Please write a program which takes the input from these arrays and decides the maximum runs that your favourite player has to score so far in order to get the orange cap. [The orange cap is awarded to the person who scores maximum runs in the tournament]. Also, please find out the maximum strike rate achieved by a batsman so far. [10]

Note: In total you are given 8 arrays where the first 4 arrays represent the runs scored and the next 4 represent the total number of balls faced.

Sample Run:

Input:

[10, 45, 500, 400, 45, 56, 67, 78, 100, 8, 11]

[100, 450, 510, 410, 415, 56, 68, 87, 101, 9, 9]

[404, 445, 520, 450, 415, 156, 167, 488, 110, 4, 2]

[505, 445, 554, 410, 445, 556, 167, 178, 70, 4, 1]

[20, 100, 500, 345, 45, 65, 86, 69, 100, 7, 10]

[101, 246, 500, 355, 145, 165, 45, 45, 54, 8, 9]

[434, 456, 550, 395, 445, 165, 96, 369, 100, 4, 6]

[520, 340, 500, 405, 345, 565, 186, 169, 67, 3, 2]

Output:

Maximum Runs Scored: 556

Maximum Strike Rate: 286.206897

Similar questions