Project on blackjack

Assignment Help Web Project
Reference no: EM13725319

BlackJack:

This game is played between a player and a dealer. (In this exercise there is only one player - you.)
Each person (player, dealer) draws two cards with each card's face counting towards a player's score. Picture cards: Jack, queen, and king count 10. Other cards count whatever number displays.
The object of the game is to get as close to 21 points as possible without goving over 21. (Going over 21 points is called 'BUSTING'.) The first one to bust looses that hand. 21 is the best score.
After looking at your initial 2 cards, you can choose to improve your score by taking an additional card. This is known as "taking a hit". That card is added to your total. Most players have a hidden rule that they go by, such as "I must take a hit on 17 or under." You can take hits repeatedly until you bust, or get close enough to 21.
Once the player Stops taking hits, the dealer can take a series of hits. If the dealer busts, you win. If not, you compare scores and the highest score wins.

To make this 'game' easier to program, here are a few simplying rules for our simulation:

1.) Assume an endless deck - don't worry about 52 cards or the same card being drawn twice.
2.) An ACE always has a value of 1 (one) rather 1 or 11.
3.) Don't worry about double downs or blackjack.
4.) Delaer must hit at 16 or under.
5.) Dealer can't hit at 17 or over.
6.) Player is prompted for the number that is their limit.
7.) Nobody wins ties.
8.) Keep a running total of the player's socre and the dealer's socre.
You Must Plan It out on Paper First !! This is the deliverable for project 1.

Some ideas for functions and procedures:
RANDOM function or package - picks a random number --- 2 examples are given to you
PX procedure - prints stars for separation
PL procedure - to save typing DBMS_OUTPUT.PUT_LINE
GET_SUIT function - Use a random number from 1 - 4 to return one of four suits ('Hearts', 'Clubs', etc..)
GET_CARD_NAME function - turns a 1 into an ACE, a 2 into TWO, 11 into Jack, 12 into Queen, etc..
NORMALIZE function - to convert jacks, queens, and Kings into a value of ten
DRAW procedure - used by a player or dealer to draw a card
CHECK_BUSTED function - see if anyone has a score over 21

Reference no: EM13725319

Questions Cloud

Customer service representative : Scenario: You are currently employed by a national Auto Parts retail chain. You started out as a customer service representative and have moved your way up through the ranks to store manager. Recently your company has indicated that they wish to p..
Different types of evaluation techniques : Identify at least 2 different types of evaluation techniques utilized by companies and identify the purpose of or measure of each technique.
Develop the comprehensive project : Based on the below, describe the process you would use to conduct research, identify findings, and develop the Comprehensive Project and present a preliminary outline indicating how you intend to organize the project deliverable. Find a random num..
Compensation polices from piece rate systems : In framing your response, research different compensation polices from piece rate systems to hourly to salary: Identify different compensation systems and provide the benefits and disadvantages of each.
Project on blackjack : BlackJack: This game is played between a player and a dealer. (In this exercise there is only one player - you.)Each person (player, dealer) draws two cards with each card's face counting towards a player's score. Picture cards: Jack, queen, and ki..
Describe which style variety of colors : An abundance of flowers, a rounded shape, and a variety of colors describe which style? The main element involved in basing is
How did popular culture-whether in form of best-selling film : How did popular culture-whether in the form of best-selling novels, games, films, or radio programs-reflect and respond to the ravages of the Great Depression?
The treasurer is currently considering two alternatives : The treasurer of a middle market, import-export Company has approached you for advice on how to best invest some of the firm’s short-term cash balances. The company, which has been a client of the bank that employs you for a few years, has $250,000 t..
Calculate the retailer selling price : Within a given distribution channel, the following information is available concerning trade margins and costs. A wholesaler has a unit selling price of $27 and a unit cost of $18. The retailer requires a 32% mark up on selling price. The manufacture..

Reviews

Write a Review

Web Project Questions & Answers

  Discuss support operations that internally hosted website

Write clearly and concisely about Systems Analysis and Development topics using proper writing mechanics and technical style conventions.

  Web page authenticity and credibility

The birth of Internet has opened a new door for research. The World Wide Web gives endless amounts of data on just about anything you can think of.

  Software development process

Discover a description of a software development process, preferably with a description on the website. There are several processes; some examples include the Rational Unified Process.

  Handling a new customer application system

Assume you have asked to prepare a report that evaluates possible client or server solutions to handle a new customer application system for all branch offices.

  Write criteria for choosing multimedia objects

The current website has some code validation errors.You need to check errors by submitting it to http://validator.w3.org and fix the current errors.

  Design and develop a secure and working prototype

Design and develop a secure and working prototype of database and a website for the aforementioned company in which wants to sell its products online as well as advertising and marketing its professional PCs and laptops' repair services.

  Create and edit web pages in a number of ways

Would another person feel the same way and if not, why not?Post your answer, which should state the recording software used and attach the passages so that others can discuss the contribution

  Describe the differences in developing user interfaces

Describe the differences in developing user interfaces for different application environments and compare and contrast the different types of interactive environments.

  Computer program stored on world wide web server

Identify a small computer program stored on a World Wide Web server that is designed to run in conjunction with browser software called?

  Discuss advantages and benefits of open source software

Discuss the advantages and benefits and disadvantages of open source software for developers and users. Present any research findings that attempt to compare the quality of commercial proprietary code with open-source code.

  What is the project

Use the template that is provided following the case study as a basis for your work. If the case study does not provide enough information for a particular section, you may "embellish" the case study with additional information sufficient to allow..

  How to develop an e-commerce strategy and prototype

Evaluation of youre-commerce strategy in terms of Porter's competitive forces model (http://www.buildmyonlinestore.com/articles/how-defensible-is-your-e-commerce-business-model/).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd