Question: If someone could please heo me finish this code it would be greatly appreciated, I have most of it done I believe I just need


CS 1400: Yahtzee Simulation Description You are playing Yahtzee with your friends when someone rolls a Yahtzee on the first roll. A Yahtzee is scored when all 5 dice have the same number. What are the chances of scoring a Yahtzee after just one roll of the dice? You could figure this out mathematically, but you decide to use your programming skills to create a simulation Simulations are valuable when the rules of a game are more complex and the mathematical solution becomes difficult to obtain Assignment Write a function called Yahtzee_Simulation) that receives no parameters. The function will simulate rolling 5 dice at least one million times It will keep track of the number of times the computer rolls a Yahtzee. The function will return the number of wins divided by the number of tries. There are no print) statements in this function Write a function called main() that receives no parameters. This function calls the Yahtzee_Simulation() function 10 times and print the result of each simulation. Finally, print the mathematical result, which can be calculated with the following code print/6/(6**5)) Hints You are not required to use the hints. It's your code . Consider breaking your code into more than the two required functions. For example, you could make a function to roll the dice Potential Sessions Sample 1 The isson runs 1000000 tis Thonny - /Users/benellsworth/CS-1400 STOD Highway.py yahtzee.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
