Question: java Step 1: Player starts with money = $1000. Player needs to bet some money in the beginning: bet = amount from keyboard input Step

java java Step 1: Player starts with money = $1000. Player needs to

Step 1: Player starts with money = $1000. Player needs to bet some money in the beginning: bet = amount from keyboard input Step 2: Player gets two random cards. Suit is generated randomly from Diamonds, Spades, Hearts, and Clubs. For each card, convert the card number to score: o Card number is generated from 1-13. o Score is not the same as the card number: If number=1 (Ace), score can be either 1 or 11 (player decides) If=11, 12, 13(Jack, Queen, and King), score is 10 . For others, score is the same as the number Total score = score of cardi + score of card2, if total score is larger than 21, bust, score=0 Step 3: Dealer gets score from a random number from 8-25 inclusive. If the number is larger than 21, get bust, score for deal is 0, otherwise no change. Step 3: Win-tie-loss: compare the player's score with dealer's score o If player's total score is more than dealer's score, the player won, money now = money + bet; o If player's total score is fewer than dealer's, player lost money = money-bet o if player ties the game, it is tie-game, money will not change; Step 4: print out: Dealer's score Player' cards plus score, and The current money amount for player. Game ends

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!