Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program to play a game of rock/paper/scissors; the user will play agains

ID: 3641145 • Letter: W

Question

Write a program to play a game of rock/paper/scissors; the user will play against the computer.

Requirements:
* All screen input/output will be from gui display and input boxes. (Valid inputs are R, S and P)
* The computer’s set of moves will be stored in a file, so the user only get’s to see their own selection.
* Exceptions handling will be implemented for the file access using try/catch statements.
* The game will start by displaying a nice information box explaining the game, and then it will ask the user for their name. The computers name will be set in the constructor, so you as a programmer can name your “computer”.
* Ask the user how many times you want to play the game, as long as the total number is less than 10. It is possible that the computer data file has less number of moves than the number of times entered by the player:
o Player enters 6 but the computer move file has 5; the game will be played 5 times.
o Player enters 5 but the computer move file as 10 entries, the game will be played 5 times.
o A maximum of 10 rounds can be played in one session.
* The game will determine who wins each round, and then display a final winner after all rounds have been played.

The program will consist of three classes:
* Test Game: Driver program that runs the game
* Player: Store the player information (Name, # of win, ties, loss). Remember the computer player name will be set through the constructor. Give a creative name for your computer.
* RockPaperScissor: Implements logic to instantiates players, set player choice, play game, display the result of the game and the final winner.
Game Rules
Player Computer Results
R R Tie
R P P2 win
R S P1 win
P R P1 win
P P tie
P S P2win
S R P2win
S P P1win
S S Tie

ComputerMove.dat
R
P
S
S
P
R

Explanation / Answer

#include #include #include using namespace std; void ShowProgramHeader(); int main() { int PlayerChoice; void ShowProgramHeader(); { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote