Slot Machine Game Assignment
Using the following UML, create a class called SlotMachine that simulates a casino slot machine in which three numbers between 0 and 9 are randomly selected and printed side by side. This is done using the “pullLever” method which is overloaded, a default method which uses one token, and a parameter method which can specify how many tokens to gamble for that single pull. There are five situations which occur when the lever is pulled.

1) {0,0,0} Super Jackpot, all zeros. Token input is multiplied by a factor of 500 and added to the machine token credit. Should output suitable “Super Jackpot Winner” message showing winnings.
2) {X,X,X} Three number win. Where X is a value 1-9, token input is multiplied by a factor of 50 and added to the machine token credit. Should output suitable “Jackpot Winner” message showing winnings.
3) {X,X,Z} Free spin. Where X and Z are…