1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Do we have any programmers here? Need homework help!

Discussion in 'BlackHat Lounge' started by thxflash, Apr 14, 2009.

  1. thxflash

    thxflash Power Member

    Joined:
    Jan 20, 2009
    Messages:
    786
    Likes Received:
    131
    Location:
    Newport Beach, CA
    Home Page:
    Basically this is the assignment I get. If someone can help me write the pseudocode algorithm that would be great and I would give you mad props! Thanks



    Assignment 9: Deal Me In!
    Points Possible: 35
    10 points for an
    interactive screen design as described below
    5 points for a hierarchy chart showing the major tasks,
    subtasks, etc.
    10 points for a flowchart that correctly describes the logic
    of the methods
    10 points for the pseudocode algorithm that correctly
    describes the logic of the methods


    GettaLyfe Game Company has hired you to design several modules for a card
    game they are developing. You will be creating the shuffleDeck(cardArray[ ],
    shuffledDeck[ ]), deal2Hands(shuffledDeck[ ], hand1[ ], hand2[ ]), and
    deal4Hands(shuffledDeck[ ], hand1[ ], hand2[ ], hand3[ ], hand4[ ]). This is not
    a complete program, just three (3) modules.

    Screen Descriptions



    • Design an output screen of how the cards might look after being dealt to two (2) players.
    • Design an output screen of how the cards might look after being dealt to four (4) players.

    Module Descriptions

    shuffleDeck(cardArray[ ], shuffledDeck[ ])
    shuffleDeck( receives an array of cards (cardArray[ ]) that has 52 cards
    ([0] through [51]) stored in suit order; Ace of Spades, King of Spades, ... ,
    2 of Diamonds - there are no Jokers in the array. The module must
    randomly pick cards from cardArray[ ] and place them in the shuffledDeck[ ]
    array. When the method is over, the programmer will use the randomized
    deck of cards in shuffledDeck[ ] for game play.

    deal2Hands(shuffledDeck[ ], hand1[ ], hand2[ ])
    deal2Hands( ) uses the shuffledDeck[ ] array to deal all the cards to two (2)
    players. Go through the array and assign the first card ( [0] ) to hand1[0]
    then the second card ( [1] ) to hand2[0], the third card ( [2] ) to hand1[1] and
    so on until all the cards in shuffledDeck[ ] have been dealt.

    deal4Hands(shuffledDeck[ ], hand1[ ], hand2[ ], hand3[ ], hand4[ ])
    deal4Hands( ) uses the shuffledDeck[ ] array to deal all the cards to four (4)
    players. Go through the array and assign the first card ( [0] ) to hand1[0]
    then the second card ( [1] ) to hand2[0], the third card ( [2] ) to hand3[0], the
    fourth card ( [3] ) to jhand4[0], the fifth card ( [4] ) into hand1[1] and
    so on until all the cards in shuffledDeck[ ] have been dealt.


    Create an interactive screen design, hierarchy chart, flowchart and
    pseudocode algorithm for these methods.
     
  2. rcom

    rcom BANNED BANNED

    Joined:
    Dec 22, 2008
    Messages:
    104
    Likes Received:
    35
    I have a great programmer who can help you with this. Will pm you.