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

Please write a program with the following code Write a program to score the pape

ID: 3550466 • Letter: P

Question

Please write a program with the following code

Write a program to score the paper-rock-scissors game. Each of two users types in either P, R, or S. The program then announces the winner as well as the basis for determining the winner : Paper covers rock, Rock breaks scissors, Scissors cut paper, or Nobody wins. Be sure to allow the users to use lowercase as well as uppercase letters. Your program should include an outer loop that lets the user play the game as many times as they like, and an inner loop to verify the move choices for the players are valid. You should test at least the following cases: Try an invalid value for (just) player 1, an invalid value for (just) player 2, and invalid values for both players at the same time. Try at some point each of 6 valid values for the first player, and during your test 6 valid values for the second player. Make sure you input valid values to test all combinations of three different plays for player 1 and three different plays for player 2 to see if the program finds the correct winner (or draw). Note that while the above implies a certain number of things get tested, you can combine testing multiple criteria withing one test case where applicable.

Explanation / Answer

Hi,

Fortran is programming language used by scientific community.


Thanks