3b

Advanced Placement

Computer Science Lab

 

 

Control Structures - Conditional Statements (continued)

 

 

 

 

Programming Assignment

 

Write a computer program to play the game Rock, Paper, Scissors.  The use of the game will play against the computer.  Use a random number to generate the computer's choice.  The program should then compare the computer's and the user's choice and announce the winner and why. 

 

Use the dialog boxes introduced in Exercise 3A for input and output.  Source code should use proper formatting.  Also turn in a copy of your output.  Output should be test at lest three times and included with the source code that you turn in.  This can be obtained by running the program and then using AltPrintScreen to copy the window of the output onto the clipboard. Then paste the contents of the clipboard into WordPad and print out the document.