How can I resolve this matter? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How can I resolve this matter?

Casino owner Al Capone is hosting a Las Vegas event Junior a new competition. A round of the game The procedure is as follows: Each participant pays a bet of 25 dollars. The amount he puts on a "lucky number", an integer in the range of 1 to 1000. After set all participants, Al chooses ten numbers, also in the range of 1 to 1000. Then the winnings are paid: For each participant, the one of As numbers determines the closest to the lucky number of the participant lies. The distance of this number too his lucky number is the participant's profit. An example: in a round of the raffle were among other things five old acquaintances of Al there. They bet on these lucky numbers: Bugsy: 1, Bonnie: 15, Clyde: 100, Mickey: 200, Lucky: 300. Al then chose these numbers: 1, 35, 117, 321, 448, 500, 678, 780, 802, 999. This gave Bugsy no profit, Bonnie received 14, Clyde 17, Mickey 83 and Lucky $ 21. Since Al wants to increase his wealth, he wants choose his numbers so that he has as little as possible Pay off. Task 3 Write a program that has the lucky numbers of all Participants in a round reads. It should then for Al select ten numbers between 1 and 1000, the lead to a low payout. Apply your program to the examples that you on the BWINF websites find. For this Examples, Al should pay less than the Participants have used.

6th Sep 2018, 7:08 AM
ali.natoura
ali.natoura - avatar
1 Answer
+ 2
This forum is NOT for solving your problems, it is for clearing doubts. Give it a try yourself then come back. Good luck.
4th Mar 2019, 10:52 PM
Marcia
Marcia - avatar