Question: Design and create a raptor program that simulates a modified version of the card game of War. The game of War employs two players,

Design and" create a" raptor program that simulates a modified version of the card game of War. The game of War employs two players, each having a deck of cards. During each play, the players simultaneously turn over their top card from their decks. The highest of the two cards wins the round. The winner of the round collects both cards. The players continue this process until one player has acquired ALL of the cards and the other player has no cards left. In your modified version, the computer plays both hands as Player1 and Player2. Ask the user what the winning score (X) will be for this iteration of the game. For each round of play, the program will generate two random numbers and compare them. If the first number is greater, the score of Player1 is incremented by 1. If the second number is greater, the score of Player2 is incremented by 1. In the case of a tie, neither player's score is incremented. The Player that reaches a score of (X) first is declared the winner. The program will then ask the user if they wish to play again. If yes, loop back to the beginning, ask for the winning score, and begin the new game iteration. If the user answers no to the "play again" questions, give the user a message that the program is ending and then exit the program. User input MUST be validated. The user will not be allowed to continue unless their input is within the parameters of the requested information. Analyze the Problem Statement, determine the Inputs, Processing and Outputs needed. Use Word to" create" an In "CREATE" the DFD for the problem in the previous questions. Use Word SmartArt AND Shapes.
Make a copy of your HC created in the previous question and start with it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!