Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

C#: Create an array/list for a deck of cards (52 cards) 2 through Ace, no jokers 2-10: Point Value Equals Number Jack, Queen, and King:

C#:

Create an array/list for a deck of cards (52 cards)

2 through Ace, no jokers

2-10: Point Value Equals Number

Jack, Queen, and King: Point Value Equals 12

Ace: Point Value Equals 15

There will be four (4) players

Have the user input the names

Give out all cards to all players

4 players = 13 cards each

Dont forget to shuffle the deck.

Deal the cards as if you were playing a real card game...each player gets one card until they are all gone.

Once all the cards are handed out, count each players cards, based on the point values above, to see what order they place...first, second, third, fourth

TIP: This might require adding each players cards into their own array/list and checking for values.

TIP: Looping this might help as well.

Console Output, from first place to last place, each players name, their cards, and their total points. Be sure to actually print out the cards and not the point values of the cardsAce not 15.

Place: 1st

Player Name

Cards: 1, 2, 3, Etc

Total Value: TBA

...continue for all players

(after player 4) Total Deck Score: (this should add up to 420 to be correct)

Check Your Work/Math. After handing out all cards, your total points should equal 420 points. If it is anything different, your code is not correct.

Run the software a few times, and select a few cards to look at...for example, the Ace. Make sure it never comes up more than 4 times.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students explore these related Databases questions