Conditional Statements

February 17th, 2016

Slides

Lecture Recording

Produced During Lecture

Important Concepts from the Reading

Lecture Problem

Write a program that creates two cards (e.g. an "Ace" of "Spades" and a "Seven" of "Clubs") and then determines whether the dealer must "Hit" or "Stand". A dealer will "Hit" if the initial two cards either (1) total 16 or less or (2) make a soft 17. Otherwise, the dealer will "Stand".

Use Driver.java as a starting point.

Take-home Exercise