You are on page 1of 2

Laboratory 1 (Rock Paper Scissor) Date

Exercise #
Log in
Name
username

Project Name / File Name: LE1_Surname.cpp


Upload Source Code only.

Rock Paper Scissor (RSP) is a very simple game which is played by two users. The rules are
as follows:
If input of Player 1 = R and input of Player 2 = S then Player 1 wins
If input of Player 1 = S and input of Player 2 = P then Player 1 wins
If input of Player 1 = P and input of Player 2 = R then Player 1 wins
If input of Player 2 = R and input of Player 1 = S then Player 2 wins
If input of Player 2 = S and input of Player 1 = P then Player 2 wins
If input of Player 2 = P and input of Player 1 = R then Player 2 wins

If both inputs of Player 1 and Player 2 are the same such as R, S, or P then it’s a tie.

Create a C++ Console Application that implements this game. Player 1 will be played by the
user and player 2 will be the computer which will generate a random data value. Display the
appropriate message if the input is invalid and use function in the implementation.

Laboratory Exercise Score Sheet


1 Intelligent naming of variables and use of comment 5
2 Instructions to the user how the game works 10
3 Layout and Design of Screen Output 10
4 Validation of Input (Handle uppercase and lowercase) 10
5 Use of User Defined Functions (with return type or with argument list) 20
6 Apply correct logic in solving the problem 20
7 Correct Output 10
8 Finished within time frame (180 minutes) 10
9 Correct Filename 5
Total 100

Date

You might also like