Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide code in language data strcucture and algorithm development in C in visual studio coding should use basic linked list method to perform actions

Please provide code in language data strcucture and algorithm development in C in visual studio
coding should use basic linked list method to perform actions and simple code is required.
image text in transcribed
image text in transcribed
In this assignment, you are asked to apply this knowledge and skill to complete th Blackjack game as described below. In your program, you should have 3 linked lists of cards: -- Deck starts with 52 cards - PlayerList starts with 0 cards for the player -- DealerList starts with 0 cards for the dealer When the game starts, 2 cards are removed from the Deck and added to the PlayerList, and 2 other cards are removed from Deck and added to DealerList. You should implement two functions for this purpose: -- DealToPlayer(): This function remove one card from Deck and add it to the PlayerList -- DealToDealer(): This function remove one card from Deck and add it to the DealerList Once the game has begun, your program should start a infinite loop of asking the user to choose between "Hit" or "Stand". Every time the user choose Hit, your program should: - Call DealToPlayer() to move one card from Deck to PlayerList - Calculate the player sum by adding the blackjack values of all the cards in the PlayerList - DealloPlayer(): This function remove one card from Deck and add it to the PlayerList -- DealToDealer(): This function remove one card from Deck and add it to the DealerList Once the game has begun, your program should start a infinite loop of asking the user to choose between "Hit" or "Stand". Every time the user choose Hit, your program should: -- Call DealToPlayer() to move one card from Deck to PlayerList - Calculate the player sum by adding the blackjack values of all the cards in the PlayerList - If the sum is >21, prints "Player Busted" and end the game. - If the sum is =16 and

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

1. Outline the listening process and styles of listening

Answered: 1 week ago

Question

4. Explain key barriers to competent intercultural communication

Answered: 1 week ago