Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the game of Lucky Sevens, the player rolls a pair of dic. If the dots add up

ID: 3620568 • 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 monry in the pot

you will need to generate two random numbers for each roll in the range 1 to 6.

Explanation / Answer

   print "The most money in the pot at once was " + str(maximum) + " dollars. "
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote