PRG 410 WEEK 3 ASSIGNMENT

PRG 410 WEEK 3 ASSIGNMENT

PRG 410 WEEK 3 ASSIGNMENT
To purchase this Click here:

http://www.coursehomework.com/product/prg-410-week-3-assignment/

Contact us at:
help@coursehomework.com
PRG 410 WEEK 3 ASSIGNMENT
C++ Programming I
PRG-410
Assignment#3
Problem 1: [marks 20]
Write a program that implements simple game scenario. Game has two-player or a three-player MODE.
For each MODE you have to choose among four HEROs. These are ALPHA, BRAVO, CHALIE and
DELTA. You have to design and implement proper notation for each MODE and implement them
accordingly using appropriate conditions e.g., First player is selecting ALPHA then Second Player can’t
select ALPHA.
Against each MODE ask five values for each player if:
• Ask input range is between (1-100) player will win with 10 points for one value.
• Ask input range is between (101-200) player will win with 20 points for one value.
• Ask input range is between (201-500) player will win with 50 points for one value.
Add all five values for HERO/HEROs and printout the winner of the game.

Problem 2: Rock, Paper, Scissors Game [marks 20]
Write a program that lets the user play the game of Rock, Paper, and Scissors against the computer. The
program should work as follows.
1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is
1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the
number is 3, then the computer has chosen scissors. (Don’t display the computers choice yet)
2. The user enters his or her choice of rock, paper, or scissors at the key-board. (Use a menu)
3. The computers choice is displayed.
4. A winner is selected according to the following rules:
• If one player chooses rock and the other player chooses scissors, then rockwins. (The rock
smashes the scissors.)
• If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors
cuts paper.)
• If one player chooses paper and the...

Similar Essays