Question: In java 2. Design and implement an application that allows a user to play a simplistic variation of Blackjack. CISC231 will play against the Computer.
In java

2. Design and implement an application that allows a user to play a simplistic variation of Blackjack. CISC231 will play against the Computer. (filename = YourLastNameCISC231Q2.java). Notes: Value of Ace =1, Cards 2 to 10, get face value. Jack, Queen and King = 10. (Just confine your numbers between 1 and 10). At the beginning of the game, both CISC231 and Computer are given 2 cards. If anyone gets 21 right away, they win. Otherwise, they start playing. Keep a running total for both players. Each player will get a chance at a card. The value of the card is added on to the running total. Keep comparing each time. The player should get as close to 21 as possible without exceeding 21 . If anyone exceeds 21 , they bust. If the Computer exceeds 21 ("busts") and CISC231 does not, the Computer loses. If CISC231 exceeds 21 ("busts") and Computer does not, CISC231 loses. If both get the same sum and exceed 21, no one wins. It is a tie. CISC231 can stop the game anytime. If anyone gets a higher value without busting, then that player wins. If anyone busts, the game stops. Keep track of how many games are played, how many times CISC231 wins and loses
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
