
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Assignment; Class: DATA STRUCTURES II; Subject: Computer Science; University: Wentworth Institute of Technology; Term: Fall 2007;
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!
COMP385 Section 71 - Data Structures II - Fall, 2007
Instructor: Bob Goldstein (617) 912- bobg@vision.eri.harvard.edu robert.goldstein@schepens.harvard.edu http://home.comcast.net/~goldsteinr/Courses/index.html http://goldstein.eri.harvard.edu/courses/index.html http://myweb.wit.edu/goldsteinr/Courses/index.html Due Date: October 23, 2007 Hand In: Printout of program code and dialogue of how it runs. Purpose: Build a simulation by working with stacks. Description: Use the classes “PlayingCard” and “CardDeck” to build 1 million blackjack hands to calculate the probability of getting a “natural 21”. According to www.blackjacktactics.com The mathematically calculated probability is 4.8% For each blackjack hand, start with a freshly shuffled deck. Then pop the top 2 cards off the deck to get one blackjack hand.. A “natural 21” is an ace together with a 10 or any face card (Jack, Queen, King). In 1 million deals, you should get about 48,000 natural 21s. Extra Credit: