Question: Write a program that reads a File with the users input of an R for rock, a P for paper, and a S for scissors.
Rock Paper Scissors Input File: rock-paper-scissors-sample file.txt Rock, paper, scissors is a classic childrens game. The rules are simple. At the same time, each person makes a hand representation of a rock, a sheet of paper, or a pair of scissors. Each symbol chosen has a cyclical status of dominance over the over, le., rock bets scissors, scissors draw. cots papers and paper covers rock if the two players chose the same symbol, it results in a Write a program that reads a file with the users input of an "R" for "Rock", a " for "Paper" and a "S" for "Scissors" You must then determine t Also, at the end of the series of game, you must present a summary of each user's wins and the number of draws. the winner based upon the rules above. Sample input Sample output Player 1 Rock Result: Winner Player 1 Player 2 Scissors Summary: Total Number of Games played: XX Player 1 won XX games. Player 2 won XX games Draws: XX Player 1 Player 2 Rock Result: Draw Player 1 Paper Rock 984491549 Player 2 Scissors Result: Winner Player 2 um
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
