Question

In: Statistics and Probability

JAVA Cricket County Selections (100 Marks) A local cricket county invited players from two neighbouring towns...

JAVA

Cricket County Selections

A local cricket county invited players from two neighbouring towns Norwich, Ipswich to form a cricket team of 11 players to participate in an upcoming cricket tournament. After selection process, it has shortlisted 22 players from both towns together and tagged each player skill points between 5 to 10 (both numbers included, only whole numbers are considered) based on their performance. The county has also categorised players into pool of batsmen, bowlers, wicket keepers and all-rounders. A player can only belong to one pool. Now the county has asked its final selection committee to pick 11 players from all shortlisted players following the below rules:

A minimum of 3 and a maximum of 6 batsmen must be selected.

  • A minimum of 3 and a maximum of 6 bowlers must be selected.
  • A minimum of 1 and a maximum of 4 Wicket Keeper must be selected.
  • A minimum of 1 and a maximum of 4 All-rounders must be selected.
  • A maximum of 7 players can be selected from each town.
  • Skill points of selected players combined must not exceed 100 points.

Can you help the selection committee to understand in how many ways they can pick final 11?

Input Format

There will be 22 lines of input.

Each line of the input consists of skill of player, skill points of player and town of player space separately.

Constraints

5<= Skill Points <=10

Output Format

Print the total number of unique 11 member teams that can be formed with all the criteria mentioned in a separate line.

Sample TestCase 1

Input

Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Batsman 10 Ipswich
Bowler 10 Suffolk
Bowler 5 Suffolk
Bowler 5 Suffolk
WicketKeeper 10 Suffolk
AllRounder 10 Suffolk
Bowler 10 Suffolk
Bowler 10 Suffolk
Bowler 10 Suffolk
Bowler 10 Suffolk
Bowler 10 Suffolk
Bowler 10 Suffolk

Output

24486

Solutions

Expert Solution


Related Solutions

JAVA JAVA JAVA JAVA JAVA JAVA Cricket County Selections (100 Marks) A local cricket county invited...
JAVA JAVA JAVA JAVA JAVA JAVA Cricket County Selections A local cricket county invited players from two neighbouring towns Norwich, Ipswich to form a cricket team of 11 players to participate in an upcoming cricket tournament. After selection process, it has shortlisted 22 players from both towns together and tagged each player skill points between 5 to 10 (both numbers included, only whole numbers are considered) based on their performance. The county has also categorised players into pool of batsmen,...
Benton County includes an independent school district and two individually chartered towns within the County. Benton...
Benton County includes an independent school district and two individually chartered towns within the County. Benton County's Treasurer assesses and collects property taxes on behalf itself, the school district, and towns. The County uses a tax collection custodian fund to record tax collections for the school district and towns. During the year ended December 31, 2020, the following transactions took place: 1. The County levied taxes as followed: Bebton County General Fund $25,000,000 School District 12,500,000 Towns 2,500,000 Total $40,000,000...
Benton County includes an independent school district and two individually chartered towns within the County. Benton...
Benton County includes an independent school district and two individually chartered towns within the County. Benton County’s Treasurer assesses and collects property taxes on behalf of itself, the school district, and the towns. The County uses a tax collection custodial fund to record tax collections for the school district and towns. During the year ended December 31, 2020, the following transactions took place: 1. The County levied taxes as follows: Benton County General Fund $ 25,000,000 School District 12,500,000 Towns...
Benton County includes an independent school district and two individually chartered towns within the County Benton...
Benton County includes an independent school district and two individually chartered towns within the County Benton Countr's Treasurer assesses and collects property taxes on behalf of itself, the school district, and the towns. The County uses a tax collection custodial fund to record tax collections for the school district and towns. During the year ended December 31, 2020, the following transactions took place: 1. The County levied taxes as follows: Benton County General Fund $26,700,000 School District 14,200,000 Towns 4,200,000...
There are 100 coins in a jar. Two players take turns removing anywhere from 1-10 coins...
There are 100 coins in a jar. Two players take turns removing anywhere from 1-10 coins from the jar. The player who empties the jar by removing the remaining coin(s) wins the game. To guarantee that you win the game, would you choose to move first or second, and what strategy would you follow?
Write Java code for each of the following problem a. Two players, a and b, try...
Write Java code for each of the following problem a. Two players, a and b, try to guess the cost of an item. Whoever gets closest to the price without going over is the winner. Return the value of the best bid. If both players guessed too high, return -1. example: closestGuess(97, 91, 100) → 97 closestGuess(3, 51, 50) → 3 closestGuess(12, 11, 10) → -1 b. Given a non-empty string, return true if at least half of the characters...
Create a java program. War is a card game for two players. A standard deck of...
Create a java program. War is a card game for two players. A standard deck of 52 cards is dealt so that both players have 26 cards. During each round of play (or "battle"), both players play a card from the top of their hand face up. The player who plays the card of the higher rank wins both cards and places them at the bottom of his stack of cards. If both cards played are of the same rank,...
Cenario: Aristotle Murphy owns movie theatres in two towns of roughly the same size, 100 kilometers...
Cenario: Aristotle Murphy owns movie theatres in two towns of roughly the same size, 100 kilometers apart. In Monopolia, he owns the only chain of theatres (he is a monopolist). In Competitia, there is no theatre chain and he is only one of a number of independent theatre operators. note In Monopolia Mr. Murphy will be a price maker (since he is a monopolist there), but in Competitia he is a more of a price taker (since he is facing...
At the county 4th of July fair, a local strong man challenges contestants two at a...
At the county 4th of July fair, a local strong man challenges contestants two at a time to a tug-of-war contest. Contestant A can tug with a force of 350 pounds. Contestant B can tug with a force of 280 pounds. The angle between the ropes of the two contestants is 45 degrees. With how much force must the local strong man tug so that the rope does not move? The answer that I've been getting for this question is...
In this game, two players sit in front of a pile of 100 stones. They take...
In this game, two players sit in front of a pile of 100 stones. They take turns, each removing between 1 and 5 stones (assuming there are at least 5 stones left in the pile). The person who removes the last stone(s) wins. Write a program to play this game. This may seem tricky, so break it down into parts. Like many programs, we have to use nested loops (one loop inside another). In the outermost loop, we want to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT