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

Margerie takes a jar of quarters to the casino with the intention to win big. Sh

ID: 3542383 • Letter: M

Question

Margerie takes a jar of quarters to the casino with the intention to win big. She plays three slot machines in sequence.  

Unknown to her, the machines are entirely predictable.

Each play costs one quarter.   

The following are constants:

The first machine pays 30 quarters every 35th time it is played;

The second machine pays 70 quarters every 100th time it is played;

The third pays 9 quarters every 10th time it is played.

So she will always run out of money - eventually.

Notice that she plays the machines one at a time in sequence: the first one, then the second one, the third one, the first one, the second one, the third one, the first one,

Explanation / Answer

RoyalBattleship1256 - did you ever find the answer to this? I too have this same question and cant figure out how to write the code properly.