Write an html file (P5.html) that uses JavaScript program to create a Blackjack game.

1. Blackjack Games Rules:

a. The object of the game is to "beat the dealer", which can be done in a number of ways:

  • Get 21 points on your first two cards (called a blackjack), without a dealer blackjack
  • Reach a final score higher than the dealer without exceeding 21; or
  • Let the dealer draw additional cards until his hand exceeds 21.

b. The player is dealt an initial two-card hand and add together the value of their cards.

c. The dealer (not the player) has to take hits until cards total 17 or more points.

d. Values: Jack, Queen and King is 10, Ace is either 1 or 11, and all other cards have the value of their number.

e. The order does not matter. For examples, get 13 points on A + 2 + K and K + 2 + A .

2. If you need help with this assignment, go to the following links:

  • JavaScript Tutorial (w3schools)
  • JavaScript Tutorial (echoecho.com)
  • Blackjack (wikipedia.org)

3. Internet Explorer will be the browser used to test your program.

4. Download and extract cards.zip into your folder you will have your program

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.