## The Gambler

**Name your program Quiz1**

Your program will have a portion that will be autograded. This means that your output needs to match the sample

**exactly as shown**in the sample output below. The words and punctuation must be exact.

Martha love playing the slot machines at the casino. Like many players, she brings a large tub of quarters and hopes that she will win a huge payout. Martha plays three machines at the same time. Unknown to her, the machines are entirely predictable. The first machine pays 30 quarters every 35th time it is played; the second machine pays 60 quarters every 100th time it is played; the third pays 9 quarters every 10th time it is played. Each time she plays a machine, it costs one quarter. In other words, she would use 3 quarters every time. Remember, she plays 3 machines at the same time!

Your program should take as input the number of quarters in Martha's tub(there will be at least one and fewer than 1000), and the number of times each machine has been played since it last paid. Your program should output the number of times Martha plays until she goes broke. A sample is shown below (output is shown in RED and input is shown in BLUE)

Your program should take as input the number of quarters in Martha's tub(there will be at least one and fewer than 1000), and the number of times each machine has been played since it last paid. Your program should output the number of times Martha plays until she goes broke. A sample is shown below (output is shown in RED and input is shown in BLUE)

## Sample

How many quarters does Martha have in the jar?

48

How many times has the first machine been played since paying out?

3

How many times has the second machine been played since paying out?

10

How many times has the third machine been played since paying out?

4

Martha plays 66 times before going broke.

48

How many times has the first machine been played since paying out?

3

How many times has the second machine been played since paying out?

10

How many times has the third machine been played since paying out?

4

Martha plays 66 times before going broke.