Visual Basic"ROCK PAPER SCISSORS"Lab Report

1) Enter your name, student ID and date

Name:

Student ID:

Date:

PROJECT DESCRIPTION:
Write a program to score the rock-paper-scissor game for two players. Each player clicks an image representing Rock, Paper or Scissors.The program announces the winner and the basis for determining the winner: Paper covers rock, Rock breaks scissors, Scissors cut paper, or a Tie game.

Enhance the program by letting the computer select a random choice for Rock, Paper or Scissors.

LAB REPORT:

2) Fill in theEXPECTED and ACTUAL RESULTS table
Fill in the player selections and Expected Resultsas shown on the lab assignment from Canvas. There are nine combinations for the game. All combinations must be provided for in the code and tested in the program.
Fill in the Actual Results after you have run and tested your program

PLAYER1 / PLAYER2 / EXPECTED RESULTS / ACTUAL RESULTS

DISCUSSION:
3) Complete the DISCUSSION section in English. It does not need to be long, but it needs to be complete.
3a) What did you do to develop the program?

3b) What problems did you have and how did you overcome the problems?

TEST THE PROGRAM

4a) Determine the randomness of the computers choices. If the program were to be tested several thousand times, the number of times Rock, Paper and Scissors were selected would be fairly close. Only run the program 21 times while selecting "Let the Computer Pick" buttons for each player and count the number of times Rock, Paper and Scissors were selected.

After 21 times playing the game, the following counts were recorded:

ROCK / PAPER / SCISSORS

PROGRAM OUTPUT:
4b) Show screen shots of the program when it is running. There are two ways you can capture a screen shot of only your program:

  • Use Microsoft's Snipping Toolby clicking on the Start icon and selecting "All Programs" then "Accessories". Use the mouse to select the area of the screen you want to save then click Ctrl-C or select the menu items Edit-Copy to save the image to the clipboard.
  • Capture the active window to the clipboard by holding down the Alt key and tapping the PrintScreen key. NOTE: some notebook computers require that you hold down a [Fn] key and Alt keys to activate the PrintScreen function. NOTE: Do not click PrintScreen without the Alt key. This would capture the entire screen which would make your program output difficult to see.

Use Ctrl+V to paste the clipboard into the lab report.

Player1=Rock Player2=Rock / Player1=Rock Player2=Paper / Player1=Rock Player2=Scissors
Player1=Paper Player2=Rock / Player1= Paper Player2=Paper / Player1= Paper Player2=Scissors
Player1= Scissors Player2=Rock / Player1= Scissors Player2=Paper / Player1= Scissors Player2=Scissors

PROGRAM LISTING:
5) Copy and paste the code that you typed to make the program work. Do NOT copy and paste the code from the lab project definition that was supplied to you.