Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Design and implement an application that allows a user to play a simplistic variation of Blackjack. CISC 2 3 1 will play against the

.
Design and implement an application that allows a user to play a simplistic variation of Blackjack. CISC
231
will play against the Computer.
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 CISC
231
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 CISC
231
does not, the Computer loses.
If CISC
231
exceeds
21(
busts
)
and Computer does not, CISC
231
loses.
If both get the same sum and exceed
21
,
no one wins. It is a tie.
CISC
231
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 CISC
231
wins and loses. using java please no AI

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

=+16.10. 2.19 16.9 | Assume u(1) Answered: 1 week ago

Answered: 1 week ago