Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

// Programmer: (put your name here) // Course: COMP220 // Assignment: Two-Dimens

ID: 3646990 • Letter: #

Question


// Programmer: (put your name here)

// Course: COMP220

// Assignment: Two-Dimensional Arrays

// Description: The program will use a 2D array and a random-number
// generation to play Blackjack and keep track of a playing-card deck.

// Input: User data entry and a playing-card deck represented as a two-
// dimensional array

// Output: A screen display showing the current card hands of each player
// and the dealer, their score, win and lose status, and a final representation
// of the card deck after the game is over

#include <iostream>
#include <iomanip>
#include <windows.h>

using namespace std;
void main (void)

{
bool bPlayerDraw[5]; //Boolean to determine if player holds (F)

//or draws card (T)

char cPlay = 'N'; //Character variable for play game input
char cCardDeck[4][13]; //Character array representing the card deck
int iCard; //Card array index
//0 = 2 card
//1 = 3 card
//2 = 4 card
//3 = 5 card
//4 = 6 card
//5 = 7 card
//6 = 8 card
//7 = 9 card
//8 = 10 card
//9 = jack card
//10 = queen card
//11 = king card
//12 = ace card
int iNumberOfDraws = 0; //Number of rounds of card draws
int iSuit; //Suit array index

//0 = diamonds
//1 = hearts
//2 = clubs
//3 = spades

// ASCII character display reference for display card suit symbols
//3 = heart symbol
//4 = diamond symbol
//5 = club symbol
//6 = spade symbol

int iNumberOfPlayers = 0;//Number of players in current game
int iPlayerCount[5]; //Integer array to holder each player's count
//iPlayer[0] is always the dealer
int iHighestCount = 0; //Highest count for a single game
int k, m; //integer loop counters
srand(GetTickCount()); //Seed the random-number generator

//Main game loop
//Enter your code here

Explanation / Answer

ATLPROG : Hi ATLPROG : Welcome back Customer : hello ATLPROG : Thanks for requesting me ATLPROG : Can you please let me know by when do you need this done. Customer : I need it by 9:00pm this evening Customer : I ATLPROG : Oh thats a very short notice Customer : At the very latest sunday by 4:00pm ATLPROG : Ok i would be able to do it by tomorrow 4 PM ATLPROG : Will it be possible for you to upload the assignment Word document ATLPROG : so that it is more readable Customer : ok that would be excellent Customer : how do I do that? ATLPROG : Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here. Customer : ok Customer : http://wikisend.com/download/157304/program word document.docx Customer : program word document.docx ATLPROG : Hi, this one is more challenging than your previous questions and would take much more effort ATLPROG : You would get an under price report from Just Answer soon, having the suggested price for this question Customer : what do I need to do Customer : how much will it be to do ATLPROG : It would be mentioned in the under priced report email you would get from Just Answer ATLPROG : If you agree with the suggested price then just let me know ..and you may either increase the price of the question or you may add the balance as bonus its upto you. Customer : I have added funds ATLPROG : Ok thanks appreciate that ATLPROG : I would keep you posted with my progress Customer : ok thanks ATLPROG : Thanks ATLPROG : Hello. I have this answer ready for you, Let me know when you are online and I will post the Answer. Customer : I am online now ATLPROG : Hi ATLPROG : Let me post the program ATLPROG : Answer Link Customer : The link isn't working ATLPROG : please copy page the following in a new browser window ATLPROG : http://ge.tt/9ERb3R7?c Customer : Everything seems to work well, thank you, I will accept the answer.