lab5_2[2) - F File lab5_2.cpp A Author Your Name...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* / File: lab5_2.cpp F Author: *** Your Name Here *** A ----------------------------------------------------------------------------- DESCRIPTION This program plays the game rock, paper, scissors with two players. The program first prompts for Player 1's name, then Player 2's name. T The program then asks player 1, (by name) to select his/her choice. The user will enter 1 for rock, 2 for paper, or 3 for scissors. The prompt will be displayed in a table as shown below: <user's name>, please chose your weapon! 1) rock 2) paper 3) scissors <user enters input here> The same procedure is then followed to prompt for player 2's choice. T Next the players choices are displayed as follows. N <p1 name> chose <choice1>, and <p2 name> chose <choice2>! Using sets of logical operators the program will determine who won the game. U The winner will then be congradulated and the program will pause and terminate. T Congratulations <players name>, you WIN!!! In the occurance of a tie, the folowing will be displayed.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/30/2011 for the course PHYSICS 1410 taught by Professor Falco during the Spring '08 term at Texas State.

Page1 / 3

lab5_2[2) - F File lab5_2.cpp A Author Your Name...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online