This program is due on Thursday, October 27th,
DELIVERABLES: source code for all procedures and functions
on disk in root
printout of all
source code
printout of a run
of the game (obtain using screen capture OR by running it in jGrasp
and copying and pasting the run window to a
file)
Write an
Your program must
1. use a user-defined enumerated type named move that contains rock, paper, scissors and read and print those values directly (i.e. you can't code them as enter 1 for rock, 2 for scissors, etc.).
2. use
a random number generator to generate the computer's move using the attributes
of the user-defined type move.
3. keep
a record of the moves made by each player (user and computer), who won each round, the number of wins by
each, and the winner of the series. Keep a record does
not mean that you need to use the record data type, it mean to show what the
moves are.... You can do this AS THE ROUNDS are played.
4. Your program needs to introduce itself to the user providing the rules of the game; tell how long the game will last, prompt the user for a move.
5. Your program needs the standard heading and descriptions and comments.
6. Your program may use: arrays, subprograms, and other features of the language.