Reference no: EM132210403
Write a program in Java
A test Class that hold main
A slot machine Class(machineName, MachineBalance, noJackPotsPaid, jackpotOdds, jackpotPayAmount, noRegularWinsPaid, regularWinOdds, regularPayout... plus whatever fileds you add)
A player Class(name,DOB,moneyBalance)
A Name Class (first name,middle initial,lastName,suffix)
A date Class (month,day,year)
You are to create a slot machine:
A. Luckky 777 , with a starting balance of 5,000, jackpotOdds 1 in 10,000,jackpotPayout 5,000, regular payout odds 1 in 10, regularPayout $5.00
you are to create 50 other slot machine players
The cost to play any machine is 1.00
You will need a menu system.
When the user goes to play a slot machine, you will allow the user to select the player and the machine.
During each play you will show the players beggining balance and ending balace.
You will display if they won, the win amount and the words JACKPOT if they hit the jackpot.