Blackjack assignment

Ditutup Dipasang Mar 30, 2003 Dibayar saat pengiriman
Ditutup Dibayar saat pengiriman

This is a simple assignment, but i'm a java beginner and i'm not sure how to approach this. Well the assintmet is to create a blackjack game with the existting template below. I specifically need the void Method and Void shuffle functions coded using the appropriate variables, the template is very self explanatory, but like i said i'm a beginner and not sure how to approach this. the template is below

## Deliverables

1) Complete and fully-functional working program(s) in the specific sections i indicated form as well as complete source code of all work done. I only need the Void Shuffle and Void BlackJack Metods, coded. import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import java.lang.reflect.*; import java.applet.*; import [url removed, login to view]; public class Hw4Casino extends JApplet { int money = 500, cardCount = 50; String CardArray[][] = new String[52][2]; String RandomCardArray[][] = new String[52][2]; String PlayerCards[][] = new String[10][2]; String DealerCards[][] = new String[10][2]; public void init() { Container c = getContentPane(); JButton button = new JButton("Homework #4"); [url removed, login to view] //anonymous class to handle opening button ( new ActionListener() { public void actionPerformed( ActionEvent event ) { hw4(); } }//end anonymous inner class ); [url removed, login to view](button); } private void hw4() { int gameint, bet; String game = ""; FillCardArray(); if(Password()) { do { if (money != 0) { game = [url removed, login to view](null, "Please Choose Your Option: " +"\n 1 = NumberGame\n" + " 2 = Blackjack\n 3 = Poker\n 4 = Money Count\n" + " 5 = Bet Instructions\n 6 = NumberGame Instructions\n"+ " 7 = Blackjack Instructions\n" + " 8 = Quit" , "WELCOME TO THE JAVA CASINO!!", JOptionPane.QUESTION_MESSAGE ); } else game = "8"; try { gameint = [url removed, login to view](game); } catch( NumberFormatException e) { game = "20"; } switch ([url removed, login to view](game)) { case 1: { bet = bet(); if(bet != 0) NumberGame(bet); break; }//end case 1 case 2: { bet = bet(); if(bet != 0) BlackJack(bet); break; } case 3: { Poker(); break; } case 4: { MoneyCount(); break; } case 5: { BetInstructions(); break; } case 6: { NumberGameInstructions(); break; } case 7: { BlackjackInstructions(); break; } case 8: { Quit(); break; } default: [url removed, login to view](null, "Incorrect Choice."+ "\nRead The Freaking Directions!!", "INCORRECT OPTION", JOptionPane.ERROR_MESSAGE ); }//end switch }while ([url removed, login to view](game) != 8); } else [url removed, login to view](null, "Your Chances are UP!!\n"+ "Get out of my casino!!!", "INCORRECT PASSWORD", JOptionPane.ERROR_MESSAGE ); } //Handles filling the randomly assigned RandomCardArray[][]. //This function is called when the cardcount is above 40 and sets the //cardcount to 0 when finshed. void Shuffle() {} //Handles Blackjack and win/loss of money. //This function calls GetPlayerCard() and GetDealerCard() //NOTE: You may break this function down into more functions if you wish!! void BlackJack(int bet) {} //The following methods have been done for you and may not be modified!! int GetPlayerCard(int playerCardCount) { PlayerCards[playerCardCount][0] = RandomCardArray[cardCount][0]; PlayerCards[playerCardCount][1] = RandomCardArray[cardCount++][1]; return [url removed, login to view](PlayerCards[playerCardCount][0]); } int GetDealerCard(int dealerCardCount) { DealerCards[dealerCardCount][0] = RandomCardArray[cardCount][0]; DealerCards[dealerCardCount][1] = RandomCardArray[cardCount++][1]; return [url removed, login to view](DealerCards[dealerCardCount][0]); } void BetInstructions() { String result = ""; result += "\nYou must place a bet ($5 increments) that is lower than "; result += "the amount of money you have.\n"; result += "Each INCORRECT bet will cost you $5!!\n"; result += "You will be kicked out of the casino if you "; result += "lose all of your money!\n"; [url removed, login to view](null, result, "BET - INSTRUCTIONS", JOptionPane.INFORMATION_MESSAGE ); }

## Platform

It will be compiled and ran on JCreator I use windows xp operating system.

Teknik Desain Permainan Java MySQL PHP Perancangan Perangkat Lunak Pengujian Perangkat Lunak

ID Proyek: #2920804

Tentang proyek

6 proposal Proyek online Aktif Apr 3, 2003

6 freelancer rata-rata menawar $15 untuk pekerjaan ini

emesevw

See private message.

$11.05 USD dalam 14 hari
(111 Ulasan)
4.4
lalesculiviu

See private message.

$17 USD dalam 14 hari
(18 Ulasan)
4.2
mobilehelp

See private message.

$17 USD dalam 14 hari
(24 Ulasan)
4.0
fabianjones

See private message.

$17 USD dalam 14 hari
(20 Ulasan)
3.3
vw653941vw

See private message.

$17 USD dalam 14 hari
(11 Ulasan)
2.4
cjwenterprises

See private message.

$12.75 USD dalam 14 hari
(2 Ulasan)
0.0