Two up is a historically popular Australian gambling game (http://en.wikipedia.org/wiki/Two-up) Two up was played at Crown Casino for a time with the following rules:

•Spinner nominates “heads” or “tails”
•If the spinner nominates “heads” and spins a series of three heads before being eliminated he/she is paid at odds of 7.5 to 1
•If the spinner nominates “tails” and spins a series of three tails before being eliminated he/she is paid at odds of 7.5 to 1
•If a series of 5 “odds” are spun the house takes all wagers
•If a spinner nominates “heads” and “tails” are spun the spinner loses his/her wager and the house pays all “tails” bets at odds of 2 to 1
•If a spinner nominates “tails” and “heads” are spun the spinner loses his/her wager and the house pays all “heads” bets at odds of 2 to 1

Write a program to simulate 100 games of two up, assume that in each game the spinner bets $100 and that observers bet $2000 in total with 80% of the observers betting against the spinner. Report the total winnings/loses for the house, observers and spinner after the 100 games have been played.


can anybody help me to do this program

Could you show us what you have so far?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.