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

I havent the slightest idea how to do this program. here is the prompt: What it

ID: 3528777 • Letter: I

Question

I havent the slightest idea how to do this program. here is the prompt: What it Looks Like to the User The program will loop, asking the user for a bet amount from 0 to 50 (assume dollars, you can use ints or longs). If the user types a 0 that means she wants to quit. Otherwise, accept the amount as their bet and simulate a slot machine pull. Your program will print out a line that looks like a slot machine result containing three strings. Some examples are: BAR 7 BAR, 7 7 Cherries, Cherries BAR Space, Space BAR BAR, or Cherries Cherries BAR. Each of the three positions in the string could be one of the following: "BAR", "7", "Cherries" or "Space". Each of the three output positions is must be generated by your program randomly with probabilities: BAR (45%) Cherries (25%) Space (15%) 7 (15%) Therefore, BAR should be the most frequent symbol seen and space or 7 the least frequent. The following combinations should pay the bet as shown (note ORDER MATTERS): Cherries [not Cherries] [any] pays 5

Explanation / Answer

rs The only place the user can make an input error is in getBet(), so that's the method that deals with such errors. Don't worry about non-numbers. Assume that a number was entered