HELP

A

ar2539

Hi, i need to create a java program.

The program have to:
Take a deck of cards (assume 52 cards to a deck) in random order. cut
the deck. cut the card from the top. shuffle the deck by laying cards
down alternatly begining with the botton card from the top sesion,
then the bottom card from the bottom section,etc. the ecess cards from
the karger section and up on top. Repeat shuffling until the deck
returns to its original state.
 
A

angrybaldguy

Hi, i need to create a java program.

The program have to:
Take a deck of cards (assume 52 cards to a deck) in random order. cut
the deck. cut the card from the top. shuffle the deck by laying cards
down alternatly begining with the botton card from the top sesion,
then the bottom card from the bottom section,etc. the ecess cards from
the karger section and up on top. Repeat shuffling until the deck
returns to its original state.

Would you like to see my rate card? My prices for bespoke software
are very reasonable. Also, I'll need your prof's email address so I
can submit it directly to him or her.
 
P

Patricia Shanahan

Hi, i need to create a java program.

The program have to:
Take a deck of cards (assume 52 cards to a deck) in random order. cut
the deck. cut the card from the top. shuffle the deck by laying cards
down alternatly begining with the botton card from the top sesion,
then the bottom card from the bottom section,etc. the ecess cards from
the karger section and up on top. Repeat shuffling until the deck
returns to its original state.

See http://home.earthlink.net/~patricia_shanahan/beginner.html for
general advice on getting started.

Patricia
 
L

Lew

Hi, i need to create a java program.

The program have to:
Take a deck of cards (assume 52 cards to a deck) in random order. cut
the deck. cut the card from the top. shuffle the deck by laying cards
down alternatly begining with the botton card from the top sesion,
then the bottom card from the bottom section,etc. the ecess cards from
the karger section and up on top. Repeat shuffling until the deck
returns to its original state.

The Ace of Spades, right?

Seriously, you just kind of laid it out for yourself pretty clearly. In
addition to what Patricia said, consider all the questions not even asked in
that description, and how you might answer them - how would a user know the
deck has been shuffled? What is the way each cycle will be shown, if at all?
Which control structure (loop, branch, switch, sequence) that we learned in
class seems to be most relevant?

To model the problem consider the things and the actions, that is, the nouns
and the verbs in the description of what happens. What is a card? A deck? An
Ace of Spades? What does it mean to shuffle a deck? What does the shuffling?
What makes a card bottom or top? And so on.

Good luck.

- Lew
 
A

ar2539

The Ace of Spades, right?

Seriously, you just kind of laid it out for yourself pretty clearly. In
addition to what Patricia said, consider all the questions not even asked in
that description, and how you might answer them - how would a user know the
deck has been shuffled? What is the way each cycle will be shown, if at all?
Which control structure (loop, branch, switch, sequence) that we learned in
class seems to be most relevant?

To model the problem consider the things and the actions, that is, the nouns
and the verbs in the description of what happens. What is a card? A deck? An
Ace of Spades? What does it mean to shuffle a deck? What does the shuffling?
What makes a card bottom or top? And so on.

Good luck.

- Lew


Thanks Lew, it was very helpful
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top