Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Program The program will contain a SlotMachine, Player, Name, Date, TestClass, and possibly other classes. A SlotMachine will have storage locations for name of

Java Program

The program will contain a SlotMachine, Player, Name, Date, TestClass, and possibly other classes.

A SlotMachine will have storage locations for name of slot, current slot balance, number of jack pots that have been paid out, how much the jackpot pays, the number of regular wins, the regular win payout, plus any other fields you consider necessary.

The Player will have a Name, dob, and moneyBalance.

The Name class will include first, middle initial, and last name.

The Date class will include month, day, and year.

You can have additional fields should you find it necessary.

The program will validate the date. The first name and last name and middle initial of a name will be in sentence case.

It will cost a play 1 dollar to play any slot machine. You will create Uncle Charlie and allow the user to create up to another 50 players.

Standard rules, no money, no playing. You will create some type of menu system. Besides creating players and machines, the program will allow slot play.

Slot Play:

The player is selected from the list of current players.

If the player has at least one dollar

The user will select the slot machine from the list of slot machines.

After one play the same player can play the same machine again.

You will show the current players balance during the play.

You will show the result of the play.

Return to main menu.

You program will create at least three different slot machines, but you will allow the user to create another 47 machines if the user wants:

Hopper 9, hopper has 5,000 dollars, jackpot happened once every 10,000 plays, the jackpot pays 5,000 dollars, the regular payout happens once every 10 plays. The regular payout is 5 dollars.

Hopper lotto, hopper has 55,000 dollars, jackpot happened once every 100,000 plays, the jackpot pays 75,000 dollars, the regular payout happens once every 50 plays. The regular payout is 25 dollars.

Cool hopper, hopper has 1,000 dollars, jackpot happened once every 50 plays, the jackpot pays 40 dollars, the regular payout happens once every 5 plays. The regular payout is 2 dollars.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions