Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA design a menu driven program. creation and use of classes. use of composite classes. use of arrays or arrayLists. Program Specifications: You are to

JAVA

design a menu driven program. creation and use of classes. use of composite classes. use of arrays or arrayLists.

Program Specifications: You are to DESIGN and WRITE Uncle Cleetis goes to Nevada program. This program will have multiple classes. 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 Cleetis 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: Lucky 7, 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. Lucky 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. Purple People Eater, 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.

YOU CANNOT Use global variables Use goto statement(s)

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

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions