In the game of Lucky Sevens, the player rolls a pair of dic. If the dots add up
ID: 3620867 • Letter: I
Question
In the game of Lucky Sevens, the player rolls a pair of dic. If the dots add up to 7, the player wins $4,00; Suppose that, to entice the gullible, a casino tells there players that there are lots ways to win:(1,6),(2,5),etc. A little mathematical analysis reveals that there are not enough ways to win to make the game worthwhile; however, because many people's eyes glaze over at the first mention of mathematics, your challenge is to write a program that demonstrates the futility of playing the game. Your program should take as input the amount of money that the player wants to put into the pot and play the game until the powt is empty. At that point , the program should print the number of it took break the player, as well as maximum amount of money in the potyou will need to generate two random numbers for each roll in the range 1 to 6.
please use JES OR IDLE. PLEASE I WOULD LIKE TO HAVE THE ANSWER BY MIDNIGHT.
Explanation / Answer
print "The most money in the pot at once was " + str(maximum) + " dollars. "Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.