Question: JAVA Design a complete system to allow a User to Play a Jackpot game Create a Game: DA of 3x3 of Card objects (Card class

JAVA Design a complete system to allow a User to Play aJAVA

Design a complete system to allow a User to Play a Jackpot game Create a Game: DA of 3x3 of Card objects (Card class defined below) Randomly Place in to each cell a completed card object (see below) Start the Game .. (make sure instructions to user via prompt are clear and complete) Constantly Prompt user if they want to play or quit.. If they press quit, printout how many games they played and how many points they earned based on the following algorithm: For every game played (every time user says they want to play a game - and not quit) 1. Generate new card objects in to DA of cards 2. If one 7 is contained in DA of cards .. they get 1 point (and printout cell location where found) 3. If two 7s are contained in DA of cards .. they get 5 points and printout cell locations where found) 4. If three or more 7s are contained in DA of cards ... they get 10 points - and printout JACKPOT! (and printout cell locations where found) When user enters your value to quit game, do the following: 1. Printout total of how many games played 2. Printout total Points Earned 3. Printout total amount if any JackPots reached. Card class Should store numeric value of card - which is randomly set by constructor to be a value from 1 to 7 inclusive and the string value of the numeric .. for example a value of 1 .. should store in to card instance var string the value "1" etc... 2 gets "2" In addition you will need accessor methods for both instance vars. And a toString method which prints out the string value of the card object

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!