Pswrd 4 attachment is: PROG1101
This is a discussion on Help with The Game Of Roulette plzzz within the C++ Programming forums, part of the General Programming Boards category; Pswrd 4 attachment is: PROG1101...
Pswrd 4 attachment is: PROG1101
Help me with the game of roulette plzzzzzzzzzzz!!
you didn't write the pseudocode , or have you started with the code already?
Last edited by rodrigorules; 05-16-2010 at 12:45 PM.
For those that don't want to muck about with a protected document -
3.5 Weeks is plenty of time to have several goes at implementing this - no hurry needed on our end.PROG1101 – Programming Essentials
PROG1101 - Programming Essentials
ISSUE DATE: 29th April 2010 DUE DATE: 10th June 2010
The Game of Roulette
Roulette is played with a wheel containing 38 different squares along its circumference. Two
of these squares, numbered 0 and 00 are green; 18 are red and 18 are black. The red and
black squares alternate in color, and are numbered 1 through 36 in a random order.
A small marble is spun within the wheel, which eventually comes to rest within a groove
beneath one of the squares. The game is played by betting on the outcome of each spin, in
any one of the following ways.
(i) By selecting a single red or black square, at 35-to-1 odds. Thus if a player were to bet
$1.00 and win, he or she would receive a total of $ 36.00: the original $1.00 plus an
(ii) By selecting a color, either red or black, at 1-to-1 odds. Thus if a player chose red on a
$1.00 bet, he or she would receive $2.00 if the marble came to rest beneath any red square.
(iii) By selecting either the odd or the even numbers (excluding 0 and 00), at 1-to-1 odds.
(iv) By selecting either the low 18 or the high 18 numbers at 1-to-1 odds.
You are required to implement the roulette game described above as an
interactive C program.
Allow the players, a minimum of two players, to select whatever type of bets they
wish by choosing from a menu. Then print the outcome of each game followed by
appropriate outcome messages indicating whether each player has won or lost.
The game must interact with the players asking them to place their bets
respectively before it starts.
The game must also allow the players to modify their bets before the marble is
spun, usually a time interval of 30 seconds is given to modify bets.
Whenever a player wins, he may either keep his money in the machine or he may
remove all or part of it. The program you develop must therefore also provide this
PROG1101 – Programming Essentials
Your code should be clearly laid out, commented and indented with appropriate use of white
space. The aim is for you to exercise appropriate programming concepts and to put them
into practice. You may also add any other relevant functionality that is provided in the game
of roulette, which is an international game.
Note:- Before you start coding you must prepare and plan the game with necessary
flowcharts and pseudo code- marks will be awarded for these deliverables as per the
marking scheme given below.
Printed version of the program with appropriate use of comments, indentation and 10 marks
white space for readability
All the Inputs, Outputs and Processing of the system 10 marks
Flowcharts and Pseudo code 20 marks
Proper use of Function and Arrays 20 marks
Software- The Roulette Game 30 marks
Presentation: The explanation of Line of Code 10 marks
Total 100 marks
All in a single top level directory on diskette (or CD!) called Roulette, if possible no
subdirectories should be used. Provide printed instructions to run the work.
The last date for submission of this assignment is week 12. Late submissions will be
penalized. You will have to present the software in the Microsoft Lab; each candidate will be
given 10-15 minutes to explain his program.
This is an individual piece of work and if found guilty of plagiarism a failure grade will
The Inputs, Outputs and the processing of your system and the system Flowchart and
Pseudocode need to be delivered on the 13th of May
LATE SUBMISSION WILL NOT BE ACCEPTED
We await your attempt.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.