Java OOP GUIDE / WORK CARD CLASS 3 SOLUTIONS TASK –
PART 1 – CARD CLASS SETUP No
solution required. TASK –
PART 2 – RED OR BLACK CARD (CARD PROGRAM 01) Here is my solution:
TASK –
PART 3 – CARD HAND & TOTAL (CARD PROGRAM 02) Here
is my solution:
TASK –
PART 4 – WAR (CARD PROGRAM 03) Here
is my solution:
|
|||
TASK –
PART 5 – BLACKJACK (CARD PROGRAM 04) Below is my
solution. Note that Aces are always
worth 1 in this program. Also, the
total score for each player is shown but the winner isn’t explicitly
outputted. This would be an easy
addition to make.
Here is
sample output from the above program:
|