Kendra M.

asked • 09/28/18

algorithm in pseudocode

Two people play a game of Count 21 by taking turns entering a 1, 2, or 3, which is added to a
running total. The player who adds a value that makes the total points exceed 21, loses the game.
Create a game of Count 21 in which two players compete against each other. On any turn, if the
player enters a value other than 1, 2 or 3, force the player to re-enter the value. The output for
the game should look similar as the following for the first pass

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.