Part 1 Instructions Write a program that plays a game of rock, paper, scissors with the computer. The rules of this game involve each opponent to throw their hand forward with one of the three symbols that represent rock, paper, scissors, respectively. If a tie happens, the opponents choose again. This keeps happening until each opponents' hands are different. The possible outcomes are as followed: Rock beats Scissors Scissors beats Paper Paper beats Rock Your program should allow the user to complete multiple rounds of this game if the user wishes to continue. Your program should work as followed: 1. Start the first round. 2. Ask the user for their choice of Rock, Paper, Scissors 3. Randomly choose Rock, Paper, Scissors for the computer. 4. Determine who won. a. If there is a tie, repeat steps 2 - 4. b. If there is a winner, determine who the winner is. 5. Output the winner of the round. 6. Ask the user if he/she wants to play again. a. If yes, repeat steps 1-6. b. If no, exit program. Note: See Appendix A for a Sample Output of this program Functions Required This program MUST be divided into the following functions. Each function must be called(other than main.) In the program to achieve assignment requirements. Main Function Parameters: None Return: None The entry point Into the program. The function defines the overall program loop. It calls run_game and prints out who won the game. It also asks the user if he/she wants to play again and If yes, runs the game again. run_game Parameters: None Returns Integer This function defines the code that executes each round of the game. This function calls the other functions below to tie the same together. This function should return of the player won or "2" if the computer won back to main get_player_choice Parameters: None Return: Integer Displays the following menu to the user. What do you choose? Rock 2 Paper 3. Scissors It will ask the use for a number and the number is 2.3. It will return the user's number will otherwise output "Error Please choose a value between 1 and 3. and ask the user for a new number get_com_choice Parameters: None Return Integer Returns a random Integer between 1 and 3. To achieve randomness in your code, study the following example e
F.: std::cout; std::endl; usa std::rand; int main() W/C:11 srand in your main function only once. This 311 make it to where evernek execution Vull produce a different ses of randon numbers. srand(time(nullpor)); I/We can use the remainder oberster to ensure that numbers are from 2 - , where in this example is je. Add 1 so get number from 1-18. cout