Question: Assignment: In this project you will complete a test-driven development kata in Java. The program will calculate the score for a hand of blackjack. Recall

Assignment:

In this project you will complete a test-driven development kata in Java.

The program will calculate the score for a hand of blackjack.

Recall that in blackjack, number cards count for their numerical value, face cards count as 10, and aces count as 1 or 11.

Your method should accept a comma separated string of single-character card values (2-10,J,Q,K,A) and return the score. Aces should count as the most advantageous number. If the input is null or empty, the method should return zero.

For example:

null -> 0

7 -> 7

7,K -> 17

A,A,A,A,7 -> 21,

etc.

Further Reading:

https://www.agilealliance.org/glossary/tdd

http://www.peterprovost.org/2012/05/02/kata-the-only-way-to-learn-tdd

Deliverables:

Submit a zipfile of your completed Java project with both code and unit tests.

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!