Canadian Computing Competition: 2007 Stage 1, Junior #3
Deal or No Deal™ is a game show on NBC. You can click here to play it (requires Flash).
In the CCC version of the game, there are
At some point, the contestant will stop opening briefcases, and a "Banker" will offer the contestant cash in exchange for what might be contained in his/her chosen briefcase. Then the contestant is asked: "Deal or No Deal?".
Write a program that helps a player decide if he/she should choose "deal" or "no deal", by calculating the average of the remaining amounts (i.e., all unopened briefcases, including his/her "own" briefcase), and comparing that value to the "Banker's" offer. If the offer is higher than the average, then the player should "deal". Otherwise, the player should say "no deal".
Input Specification
The user must input a number 3 2 5 10 300
indicates that briefcases containing
Output Specification
The program will print out one of two statements: deal
or no deal
.
Sample Input 1
2
3
8
198000
Sample Output 1
no deal
Sample Input 2
8
10
9
8
7
6
5
4
3
400
Sample Output 2
deal
Comments
RIP flash
This comment is hidden due to too much negative feedback. Show it anyway.
the game doesn't work even if you activate adobe flash
The point of this is to make your own code not playing the game
The question says you can click here to play it, but there is no link!!! We are outraged!!! Mass hysteria!!!
It's because the link is outdated. Do any of you know that this is from 10+ years ago?
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.
The game requires Flash to run, and as such may not be playable in all browsers (notably Firefox).
Worked for me (Chrome)
This comment is hidden due to too much negative feedback. Show it anyway.
refrensh your page
This comment is hidden due to too much negative feedback. Show it anyway.