I am currently in a basic Java Programming Class. This was given to me as a take home lab to count as an exam grade. I'm not asking for you to just give me the answer unless you want to, I just have no idea
I am currently in a basic Java Programming Class. This was given to me as a take home lab to count as an exam grade. I'm not asking for you to just give me the answer unless you want to, I just have no idea where to start and would like some guidance, or just help walking through this lab. Thanks here is the question.
Create a new project called <yourlastname>Lab8.
Design a slot machine that takes a nickel to play. Once the nickel is inserted, the player hits enter to start. Three wheels will turn - each wheel has on it the 18 varsity sports at JCU listed below. Then the wheels stop, with one random pick from each wheel. Use JOptionPane techniques for input and output. You can use either one class or separate classes.
Three of a kind = jackpot (all the money in the machine).
Three of the same season = all the money in the machine up to $1.00
Three of the same gender = all the money in the machine up to $0.50
Anything else = you lose.
You must keep track of the amount of money in the machine ($0.00 at the start, adding $0.05 for each play, minus any payouts).
After each spin, ask the player if they want to play again. If yes, take their money and spin again. If not, say goodbye and display the amount of money still in the machine.