don't know how to get started please help with this program.
rock,paper,scis sors
We will write a program that multiple games of rock, paper, scissors: keeps a cumulitive score, quits when either player enters a 'Q' and declares an overall winner.
Input: Two players enter their respective plays at the prompts. Valid input is 'R', 'P', or 'S'. The program should accept bad input with an error message.'R' beats 'S'; 'S' beats 'P', and 'P' beats 'R'. The program should record each players total number of ins as well as the number of ties. Invalid plays are not counted unless you choose to do so.
The program should echo print the output and state the winner of each round. At the end, the scores are printed and a winner is declared.
The purpose of this program is to demonstrate subroutines (functions) and parameter passing using both pass by value (passing a copy) and pass by reference (passing such that the parameter may be changed).
rock,paper,scis sors
We will write a program that multiple games of rock, paper, scissors: keeps a cumulitive score, quits when either player enters a 'Q' and declares an overall winner.
Input: Two players enter their respective plays at the prompts. Valid input is 'R', 'P', or 'S'. The program should accept bad input with an error message.'R' beats 'S'; 'S' beats 'P', and 'P' beats 'R'. The program should record each players total number of ins as well as the number of ties. Invalid plays are not counted unless you choose to do so.
The program should echo print the output and state the winner of each round. At the end, the scores are printed and a winner is declared.
The purpose of this program is to demonstrate subroutines (functions) and parameter passing using both pass by value (passing a copy) and pass by reference (passing such that the parameter may be changed).
Comment