Slot machines allow players to gamble by inserting cash or, for ticket-in ticket-out machines, paper tickets with barcodes into an…