For the following problem please write an algorithm in plain English .i.e give details as to how you will solve the problem.A deck of 52 playing cards (as used for playing bridge) has to be sorted. At the end of the attempt, the sorted deck of cards should be on the table with the backside up.The order within a suite is Ace - King - Queen - Jack- 10 -9 - 8 - 7- 6- 5- 4- 3- 2. The very first card in the sorted deck is the Ace of Clubs, the next ones are the King of Clubs, the Queen of Clubs, the Jack of Clubs, the 10 of Clubs ... down to the 2 of Clubs. The next card is Ace of Spades, followed by the King of Spades etc. The hearts and diamonds cards follow in the same order.The deck of cards must be well-shuffled immediately prior to the challenge.Please write the algorithm in steps like you write a recipe for a dish.If any steps need to be repeated try to use a loop.Please try to not use any programming language.(IT's one question just with a lot of instructions to be understood well)

Question
Asked Jan 14, 2019
144 views

For the following problem please write an algorithm in plain English .i.e give details as to how you will solve the problem.
A deck of 52 playing cards (as used for playing bridge) has to be sorted. At the end of the attempt, the sorted deck of cards should be on the table with the backside up.
The order within a suite is Ace - King - Queen - Jack- 10 -9 - 8 - 7- 6- 5- 4- 3- 2. The very first card in the sorted deck is the Ace of Clubs, the next ones are the King of Clubs, the Queen of Clubs, the Jack of Clubs, the 10 of Clubs ... down to the 2 of Clubs. The next card is Ace of Spades, followed by the King of Spades etc. The hearts and diamonds cards follow in the same order.
The deck of cards must be well-shuffled immediately prior to the challenge.
Please write the algorithm in steps like you write a recipe for a dish.
If any steps need to be repeated try to use a loop.
Please try to not use any programming language.
(IT's one question just with a lot of instructions to be understood well)

check_circle

Expert Answer

star
star
star
star
star
1 Rating
Step 1

Algorithm to arrange the deck of 52 cards for the given scenario is as follows:  

Step 2

 Place the cards face up into thirteen separate piles by rank in group of aces, kings, queens, jacks up to all 2’s.

Step 3

Now, keeping the card still face up, place the kings onto the ace, the q...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Science

Related Computer Science Q&A

Find answers to questions asked by student like you
Show more Q&A
add
question_answer

Q: Develop the ‘Shape’ application such that: Implement an array of objects of various types (all SIX ...

A: Program plan: Define a class called “Shape”.Define a default constructor to print the message.Define...

question_answer

Q: Write a class in java with the name AgeMessages , which does the following:a. Ask the user to enter...

A: The algorithm for the program would be as below:Declare one float variable for accepting user inputP...

question_answer

Q: 11,12,13

A: Two main advantages of storing data digitally rather than in analog format are:Data stored in digita...

question_answer

Q: How can I create a decoder and a multiplexer in a circuit? The decoder has a 3 bit select input and ...

A: A decoder is a circuit which has n inputs and 2n outputs. So if there are 3 inputs to a decoder it w...

question_answer

Q: Create a PL/SQL block to calculate factorial of a number entered from the screen by the user. If the...

A: The PL/SQL block to calculate factorial of a number entered from the screen by the user is given bel...

question_answer

Q: Write a python code of a function that takes in four points in a counterclockwise order, a, b, c, d ...

A: Program Instructions:Create a function isConvex() and pass the four points as arguments.Save the par...

question_answer

Q: How do I get values from a dictionary into a Python code when my values are in a .txt file?

A: Program instructions:Initialize a dictionary variable named "dictionary" and use open() function to ...

question_answer

Q: // java // book is starting out with java //chapter 12  (5)Theater RevenueA movie theater only keeps...

A: Program plan:Import required packages.Define a class named “TheatreGUI”.Declare the required variabl...

question_answer

Q: How would I open a file and encrypt that file from a dictionary in Python? Attached is a picture of ...

A: The functions are implemented in python 3. Since the python dictionary given in convert function is ...