C++ questions, Please make sure to divide your program intofunctions which perform each major task.
The game of rock paper scissors is a two player game in whicheach each player picks one of the three selections: rock, paper andscissors. The game is decided using the following logic:
ROCK defeats SCISSORS (“smashes”)
PAPER defeats ROCK (“wraps”)
SCISSORS defeats PAPER (“slices”)
If both players choose the same selection the game ends in atie. Write a program that asks the user to select one of the threechoices. The computer will randomly choose one of the three optionsas well. Your program will then display both players' selections aswell as the who won the game.