The game should begin by randomly dealing 2 cards to the user's hand, and then calculate and display the total. Next the program should display a prompt, asking the user if he/she wants a Hit or to Stand. If the user selects to Hit the game should randomly deal a new card to the user's hand, and then calculate and display the new total. If the total is greater than 21, then the user Busts, the house wins, and a message indicating these results is displayed. If the total is less than 21, repeat the Hit/Stand Prompt to the user. Continue this process until the user elects to Stand or Busts. If the user selects to Stand, the game then randomly deals two cards to the house, and then calculates those total points. The dealer must continue to Hit as long as the total of the House had is under 17, display the results after each Hit The dealer must Stand once the House hand reaches 17 or higher. Once If the user has not already Busted, compare the User's Hand to the House Hand and determine and display the results. The player closes to 21 without going over wins. Once a final game result has been displayed, prompt the user to see if he/she would like to play again. If the user selects to play again, start the program from the beginning, otherwise display a farewell message and terminate the program.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
The game should begin by randomly dealing 2 cards to the user's hand, and then calculate and
display the total.
Next the program should display a prompt, asking the user if he/she wants a Hit or to Stand.
If the user selects to Hit the game should randomly deal a new card to the user's hand, and then
calculate and display the new total.
If the total is greater than 21, then the user Busts, the house wins, and a message
indicating these results is displayed.
If the total is less than 21, repeat the Hit/Stand Prompt to the user. Continue this process
until the user elects to Stand or Busts.
If the user selects to Stand, the game then randomly deals two cards to the house, and then
calculates those total points.
The dealer must continue to Hit as long as the total of the House had is under 17, display
the results after each Hit
The dealer must Stand once the House hand reaches 17 or higher. Once
If the user has not already Busted, compare the User's Hand to the House Hand and determine
and display the results. The player closes to 21 without going over wins.
Once a final game result has been displayed, prompt the user to see if he/she would like to play
again. If the user selects to play again, start the program from the beginning, otherwise display a
farewell message and terminate the program.
Transcribed Image Text:The game should begin by randomly dealing 2 cards to the user's hand, and then calculate and display the total. Next the program should display a prompt, asking the user if he/she wants a Hit or to Stand. If the user selects to Hit the game should randomly deal a new card to the user's hand, and then calculate and display the new total. If the total is greater than 21, then the user Busts, the house wins, and a message indicating these results is displayed. If the total is less than 21, repeat the Hit/Stand Prompt to the user. Continue this process until the user elects to Stand or Busts. If the user selects to Stand, the game then randomly deals two cards to the house, and then calculates those total points. The dealer must continue to Hit as long as the total of the House had is under 17, display the results after each Hit The dealer must Stand once the House hand reaches 17 or higher. Once If the user has not already Busted, compare the User's Hand to the House Hand and determine and display the results. The player closes to 21 without going over wins. Once a final game result has been displayed, prompt the user to see if he/she would like to play again. If the user selects to play again, start the program from the beginning, otherwise display a farewell message and terminate the program.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY